XF 2.0 Adding Google and Facebook trackers to register_confirm

I have added to the register_confirm template.:
1) Google Global site tag,
2) Event snippet,
3) Facebook Pixel Code,
4) CompleteRegistration tracker

I do not know what URL to give to Google and Facebook to test their code. I tried giving them https://myforum.com/account-confirmation/user.28/email?c=qkqybtW2MEWWvlJj page, but it did not work. This page was once active, but now it only shows "Your email address could not be confirmed."

Here is my register_confirm:

<div class="blockMessage">
<xf:if is="$xf.visitor.user_state == 'moderated'">
{{ phrase('your_email_has_been_confirmed_registration_must_be_approved') }}
<xf:elseif is="{{ $xf.visitor.getPreviousValue('user_state') == 'email_confirm_edit' }}" />
{{ phrase('your_email_has_been_confirmed_and_your_account_is_now_fully_active_again') }}
<xf:else />
{{ phrase('your_email_has_been_confirmed_and_your_registration_is_now_complete') }}
</xf:if>

<ul>
<xf:if is="$redirect"><li><a href="{$redirect}">{{ phrase('return_to_page_you_were_viewing') }}</a></li></xf:if>
<li><a href="{{ link('index') }}">{{ phrase('return_to_forum_home_page') }}</a></li>
<xf:if is="$xf.visitor.canEditProfile()">
<li><a href="{{ link('account') }}">{{ phrase('edit_your_account_details') }}</a></li>
</xf:if>
</ul>
</div>

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

gtag('config', 'AW-XXXXXXXXX');
</script>

<!-- Event snippet for Got a user for AOF conversion page -->
<script>
gtag('event', 'conversion', {'send_to': 'AW-XXXXXXXXX/8zZTCJz4goABEJn3hYgD'});
</script>

<xen:container var="$head.tracker">
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'XXXXXXXXXXXXXXX');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=XXXXXXXXXXXXXXX&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
</xen:container>

<script>
fbq('track', 'CompleteRegistration');
</script>
 
Top Bottom