Site Tracking - Extra Functions

Enabling Site Tracking on your website allows you to achieve much more with Transpond. For example tracking what users do after they have clicked a link in your email campaign, or automating a notification to yourself when someone visits an important part of your website like a pricing page.

But what if you want to track specific actions like someone abandoning their shopping cart, or even just populating Transpond with more information about a customer from your own User Interface.

This is where the Site Tracking Extra Functions come in.

Below you can find options that are available to your Javascript developers once they have plugged in the Transpond web tracking javascript on your website.


Variables you can Pass

mpEmailAddress The email address
mpGroupId The id of the group you would like new email addresses sent to. If not set, un-recognised addresses will be ignored.
mpPath The current path on your website.
mpQuery The current querystring on your website
mpCustomFields An object containing any custom field values you would like to send in. You can send anything in here, we will auto create the fields if they don't exist. We will even attempt to auto detect the type of data you are pushing in!

Inline

You can pass variables by simply initiating/updating them anywhere on your page like this...

<script><br>var mpEmailAddress = "test@test.com";<br>var mpGroupId = 74175;<br>var mpPath = "/path.html"<br>var mpQuery = "?query=1"<br>var mpCustomFields = {<br>"First Name": "Colin",<br>"Age": 19,<br>"Birthdate": new Date("2015-03-25").toISOString(),<br>"Male: true<br>}<br></script>

Programatically

You can force the variables to update by programatically calling a function like this...

<script><br>manualTracking(<br>mpPath,<br>mpQuery,<br>mpEmailAddress,<br>mpCustomFields,<br>mpGroupId<br>)<br></script>
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.