My magento site maintains the google analytic and remarketing section thorough an extension called "Aromicon (GUA)", which put a script and some parameters in every page.
Now I have to add some code for dynamic google remarketing in some specific pages like Home, Category, Product, cart. So when I add another script having same function as in "GUA" but parameters are different, then will it work properly ? Or is it possible in other way ? Kindly guide..Thanks.

1 Answer 1


If your Google API tracking Ids different for both scripts that should not be an issue.

But if it is same in both the GA scripts, when every time page load GA js script code will send tracking hit twice to Google analytics servers.

You can add default Magento GA code for particular pages.

For that see below file,


You will need to add below set of xml script for particular page.

<reference name="head" before="-">
   <block type="googleanalytics/ga" name="google_analytics" as="google_analytics" template="googleanalytics/ga.phtml" />

You can do same for Google re-marketing code.

  • Yes @Akhilesh, Both the Ids are same. So will it create any problem ? Commented Oct 2, 2015 at 10:08
  • Yes, It will send hit to google twice and it will show pages with double tracking. Commented Oct 2, 2015 at 10:12
  • so how can I add the dynamic remarketing script in specific pages ? Commented Oct 2, 2015 at 10:16
  • I have edited my answer. Commented Oct 2, 2015 at 10:28
  • So should I modify the ga.phtml with my dynamic script ? Commented Oct 2, 2015 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.