Hi there
we built a configurator using Limesurvey for which we are running a google ads campaign. To track the campaign conversions we must include the following 2 sniplets into the code of the survey. I tried to put it directly into the first question html code but this doesn't seem to work - could you give me any hint where to place the two codes?
Google says:
To set up conversion tracking, you must have the global site tag and an event snippet in the code your page uses. To add the tag and snippet, select the framework your page uses and follow the instructions.
Global site tag: Copy the tag below and paste it in between the <head></head> tags of every page of your website. You only need to install the global site tag once per account, even if you're tracking multiple actions.
<!-- Global site tag (gtag.js) - Google Ads: 9689xxxx -->
<script async src="
www.googletagmanager.com/gtag/js?id=AW-9689xxxx
">
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-9689xxxx ');
</script>
Event snippet: The event snippet works with the global site tag to track actions that should be counted as conversions. Choose whether to track conversions on a page load or click.
<!-- Event snippet for Configurator conversion page -->
<script>
gtag('event', 'conversion', {'send_to': 'AW-9689xxxx /A9DmCIqG2xxxxxxxxM4D'});
</script>
I don't need the tags on all the sites, really just the first page is ok.
Thank you for any input.