Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Is there any module to add some new things like Google Tag Manager's code to Drupal based website? for example you should install Google analytic module to add analytic to your site, is any equivalent for Google Tag Manager?

share|improve this question

4 Answers 4

There are two sandbox modules: GTM and Google Tag Manager, both are for Drupal 6, you can easily port them to Drupal 7.

share|improve this answer

You might be interested in:

https://drupal.org/project/gpt

This module provides a way to serve DoubleClick's Google Publisher Tag (GPT) (Premium and Small Business) ads on Drupal.

Benefits of GPT

The new Google Publisher Tags have multiple benefits over Google Ad Manager (GAM) tags and the legacy DoubleClick for Publishers Dart tags.

  • Asynchronous
  • Ad loading does not block the page from rendering, improving page load time. Can be disabled if desired.
  • Google Publisher Console
  • Accessed by loading a page of your site with ?google_console=1 appended to the URL page and using the keyboard shortcut Ctrl+F10 to toggle the console.
  • Single request mode
  • The browser sends a single request for retrieving all add units for the page, enabling advanced roadblocking and improving page load time.
  • Multiple instances of the same ad unit on a page
  • SSL support
  • Slot-level custom targeting
  • Refreshing ad slots on a page
share|improve this answer
    
this is completely different thing than the one in question. –  Łukasz Rysiak Aug 7 at 20:13

There is an officially released module (since early 2014): GoogleTagManager.

Allow the non-technical stakeholders to manage the analytics for their website using the Google Tag Manager (GTM). This module allows you to trigger the insertion of tags and tracking systems onto the pages of the site.

share|improve this answer

you should use these two:

https://www.drupal.org/project/google_tag

https://www.drupal.org/project/datalayer

First one installs GTM on your page, second one enables passing many variables and taxonomies to be passed to dataLayer. It also has an alter function, if you'd like to add some extra data (since the module is written in a general way and i.e. extracting taxonomies from json arrays on the GTM side can be complicated).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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