To track your goals, you need to add another data layer to pages with conversion touch points in addition to the basic data layer for all pages. To do this, you have two options:
Option 1: Data Layers with the Type of Goal
Apply the data layer on all pages where users reach a website goal by loading the page. Next, enter the type of the respective website goal. There are some predefined goals like email, newsletter, and subscriptions. You can provide additional goals according to your needs.
Data Layer
window._ti['websiteGoal'] = 'Newsletter';Data Layer Variable or Function | Description |
|---|---|
| Contains the website goal which is reached whenever a user loads a specific page. You must define which conversion goal was reached. Available predefined goals:
You can set up custom goals as well. |
Option 2: Event Push
You can measure the results via event push. The website goal is then recorded as soon as an event takes place on a page, for example, a link click and not on reload.
On Click Events
//websiteGoal
onclick="wts.push(['send','click', {linkId:'website goal', customEcommerceParameter:{1:'Newsletter'}}])