Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Google Ads Conversion Tag

  • blukas
  • blukas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 10 months ago #185348 by blukas
Google Ads Conversion Tag was created by blukas
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.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #185352 by holch
Replied by holch on topic Google Ads Conversion Tag
You'll have to include it into the design template of your survey.

I assume you have a custom template anyway, if you programmed a configurator.

Then you just implement it at the header or footer in your design template.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose