You can use the following facts to set up your targeting for conversions.
Visits | User actions | Technology | User history & data | Misc |
Days | Custom fact | Browser language | Cookies | If block |
Month | Exit intent | Device | Data layer | Push goal |
Page Content | Goal history | Screen width | Geo data | |
Page views | Interaction | Revenue | ||
URL | Scroll from top | |||
Referral type | User inactivity | |||
Referral URL | ||||
Time | ||||
Total visits |
Visits
Days
Used to only register the goal on a specific day(s)
Month
Used to only register the goal on a specific month(s)
Page content
Set an element that needs to exist on the page for the goal to register. Enter the CSS selector of the element and choose if you just want to check if it exists or if you also want it to match some specific text by choosing match type in the dropdown and enter the text that need to be matched in the second input field. In the example above the goal will register if an element with the selector .search input exists on a page the visitor visits. The difference between Exact match, Simple match, Contains & Regex
Page views
Set the number of pages that needs to be seen before the goal should register
URL
Set an URL match that needs to be fulfilled for the goal to register. The difference between Exact match, Simple match, Contains & Regex
Referral type
Choose a referral type (Organic, Social, or Referral (other) ) that needs to be fulfilled for the goal to register
Referral URL
Target a specific referrer by URL that needs to be fulfilled for the goal to register. The difference between Exact match, Simple match, Contains & Regex
Time
Set time of day that needs to be fulfilled for the goal to register
Total visits
Set the number of visits that need to be done before the goal is registered
User actions
Custom fact
Set your own javascript statement and call factSuccess(); to register the goal.
Exit intent
Register the goal if the user intends to leave the website (only for desktop)
Goal history
Register the goal if another goal has been satisfied
Interaction
Register the goal if a visitor clicks on a specific element. Enter the CSS selector for the element as the value
Scroll from top
Set a percent or pixel limit the visitor needs to cross for your goal to be registered
User inactivity
Set number of seconds of inactivity by the visitor before your goal is registered
Technology
Browser language
Checks the value in navigator.language and registers the goal if matched
Device
Set the device(s) that needs to be matched for your goal to register
Screen width
Set the screen width (on load) that needs to be matched for your goal to register
User history & data
Register the goal if a cookie exists and/or matches a value. The difference between Exact match, Simple match, Contains & Regex
DataLayer
Register the goal if a dataLayer key exists and/or matches a value. The difference between Exact match, Simple match, Contains & Regex. For the below examples we will use the dataLayer object in the below image.
Example: Add to cart event
If the Add to cart even is added to the dataLayer when the visitor clicks on the Add to cart CTA you can set the dataLayer statement to check the query key "event", change "Exists" to "Match operator" then choose "Exact match" and type in the string "addToCart". If done correctly it should look like below.
Example: Stepping down the dataLayer objects
If you want to step down in the dataLayer object to reach lower level key/values, you need to use dot notation. If you for example want to reach the query key "currencyCode" and the value "SEK", set the query key to "ecommerce.currencyCode" change "Exists" to "Match operator" then choose "Exact match" and type in the string "SEK". If done correctly it should look like below.
If you instead want to target users that has a fulfilled a certain number value (for example order above €5), you can instead use "Comparison operator" and then choose the rule you want to apply. In the below example we are targeting users with order value above €5.
Geo data
Register the goal if the visitor is/isn't from a specific country, region, or has/hasn't a specific IP address
Revenue
Add this fact to get revenue data connected to the goal. Notice that this needs a callback to populate the values. See How to implement revenue tracking
Misc
If block
A block used for grouping statements. If you use Match all, then all statements need to evaluate to be true in that block for the entire block to be true. If you use Match one of, then only one statement in that block needs to evaluate true for the entire block to be true.
Push goal
Callback that needs to be implemented that will register a conversion when called.