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

Programatically

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

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

Still need help? Contact Us Contact Us