• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Tracking Goals


Well-known member
I want to set up tracking goals with my stats to track registrations and premium member upgrades.

Its seems quite simple to do just by adding a snippet of JavaScript in the template.

But which templetes would I need to add it to track completed registations and upgrades?

Alternativly I can do it by url.


Well-known member
I've been looking through my templates.

and for the registration it looks like adding the code to the register_confirm temple in this bit:

<div class="systemMessage">
    <xen:if is="{$user.user_state} == 'moderated'">
        {xen:phrase your_email_has_been_confirmed_registration_must_be_approved}
    <xen:elseif is="{$oldUserState} == 'email_confirm_edit'" />
        {xen:phrase your_email_has_been_confirmed_and_your_account_is_now_fully_active_again}
    <xen:else />
        {xen:phrase your_email_has_been_confirmed_and_your_registration_is_now_complete}
and for upgrades add the code in the account_upgrade_purchase template.

is that right?