Google Tag Manager Integration

Hi Sawtooth,

I need your help with a unique client request. Our client wants to track their study using Google Tag Manager, and I need to implement tags at the entry and exit points of the questionnaire to communicate with the solution.

Here’s an example of the tag that was provided:


<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-10962484472"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'AW-10962484472');
</script>

<!-- Event snippet for IFOP - EXPOSES 1 conversion page -->
<script>
  gtag('event', 'conversion', {
      'send_to': 'AW-456777691/pQUfCNjq7vYaENu_59kB',
      'value': 1.0,
      'currency': 'EUR',
      'transaction_id': ''
  });
</script>

Could you advise where exactly in the questionnaire I should place this tag?

Additionally, I have five different tags, each corresponding to one of five different target groups defined in a quota question at the beginning of the survey. How should I manage this tagging based on respondents’ target group?

Lastly, do I need to add any security permissions or settings in the questionnaire to allow these tags to function properly?

Thank you in advance for your support!

Best,

S