Adwords conversion tracking code?

CTXMedia

Well-known member
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?

Thanks,
Shaun :D
 
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
 
Thanks in advance for the time...

Has anyone tried this?

At the very top of the register_process I simply added:

Code:
    <xen:if is="{$contentTemplate} == 'register_process'">
    <!-- Event snippet for Forum Registration from Search Ad conversion page -->
    <script>
      gtag('event', 'conversion', {
          'send_to': 'AW-blahblahblah/bG1KCJW2x4ABEK6zhcAD',
          'value': 1.0,
          'currency': 'USD'
      });
    </script>
    </xen:if>

Can someone confirm this works? Having a hell of a time.

Thank you!

M
 
Top Bottom