CVM / Magento_GoogleTagManager

Google Tag Manager extension for Magento
67 stars 55 forks source link

AdWords Dynamic Remarketing #2

Open luctuosa opened 11 years ago

luctuosa commented 11 years ago

First off I'd like to say great module, I like where you're going with this. Very nice.

Secondly, I have the version of the module that's on MagentoConnect.

My question is concerning setting up an AdWords Dynamic Remarketing tag.

According to this document on Google Support, there needs to be another small JavaScript variable for this kind of tag:

https://support.google.com/tagmanager/answer/3002580?hl=en&ref_topic=3002579

If you scroll down to Option 1: Using the dataLayer, you'll see that the variable in question is 'var google_tag_params'. Apparently in the way that GTM makes you set up AdWords remarketing tags, you can only choose between using the Data Layer or by manually specifying custom parameters.

Choosing the Data Layer option only allows you to choose one variable, which would be google_tag_params. However, this variable is not in the code that this module generates.

If you choose to manually specify the parameters, Step 3.2 on the site I linked, you have to use the following macros: pagetype, prodid, pname, pcat, and pvalue. What these values would have correlated to in the standard DataLayer is in the array transactionProducts, But I can't access those without rewriting some code, and I'm not much of a programmer.

My question is if maybe I am missing something here, or if I'm not, do you plan on implementing the JS variable google_tag_params in a future version to be compatible with AdWords Remarketing tags?

Thanks, Josh

CVM commented 11 years ago

Thanks for your interest in the extension.

You'll be pleased to hear that this feature is already planned for a future version, as I'll be needing it for a client's project fairly soon. I expect this will be added to this repository in the next 2 weeks or so, and then on Magento Connect shortly after.

I've marked this issue as a roadmap item and will update here upon completion.

luctuosa commented 11 years ago

Hey so, what's the word on this? No rush or anything, just wondering because it's been a solid month and I'm still looking for this feature.

Josh

digibeuk commented 11 years ago

I just forked your nice extension and added dynamic remarketing data layer for products, it is a quick fix we needed for a customer, I will try to incoporate this into the model you used in the original repo, for now the changes are in the phtml file