XF 1.1 Tracking Goals

akia

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.
 
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:

Code:
<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}
[COLOR=#ff0000]<JAVA SCRIPT CODE HERE>[/COLOR]
    </xen:if>

and for upgrades add the code in the account_upgrade_purchase template.

is that right?
 
Top Bottom