Adwords conversion tracking code?


Formerly CyclingTribe
Google Adwords allows you to track conversions; which, in terms of my forums, would be a new user registration.

The tracking code needs to go on a page that comes up after the action has been performed so in the case of GeeksChat is there a specific post-registration template in XF that I can use please?

Shaun :D

Jake Bunce

XenForo moderator
Staff member
The email activation page uses this template:

Admin CP -> Appearance -> Templates -> register_confirm

The page immediately following submission of the form is this template:

Admin CP -> Appearance -> Templates -> register_process

Michael Murguia

Active member
Thanks in advance for the time...

Has anyone tried this?

At the very top of the register_process I simply added:

    <xen:if is="{$contentTemplate} == 'register_process'">
    <!-- Event snippet for Forum Registration from Search Ad conversion page -->
      gtag('event', 'conversion', {
          'send_to': 'AW-blahblahblah/bG1KCJW2x4ABEK6zhcAD',
          'value': 1.0,
          'currency': 'USD'
Can someone confirm this works? Having a hell of a time.

Thank you!