Site Tracking
Enabling Site Tracking on your website allows you to achieve much more with Transpond.
Once enabled, Site Tracking will allow you to see what your contacts are doing on your websites. Contacts who might initially be anonymous on your website can be identified once they interact with your emails or contact forms.
You can then setup Automations based on the actions they take on your website such as sending targeted emails when someone visits an important part of your website like a pricing page.
IN THIS ARTICLE
How to enable Site Tracking | How to view Site Tracking info | Site Tracking - Extra Functions |
How to enable Site Tracking
- Go to Website > Tracking
- Copy and paste the code from that page into the source code of your website, as instructed.
- Make sure to also enter the URL for the site you're adding it to.
- Reload the page.
- Once picked up, Transpond will show the site there.
If you have tracking enabled on multiple sites, they'll all show on the same page.
How to view Site Tracking information
- Go to Website > Tracking
- Click on the site that you want to view tracking for.
- Now you'll get to see all the information that Transpond tracks from your site, including Unique visitors, Page Views, Locations and more.
- Use the tabs on the page to view details related to Visitors, Pages and Campaigns.
Site Tracking - Extra Functions
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
Variable | Description |
---|---|
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>