Visit tag
Add this code snippet to the <head> section of all the web pages so it avoids being delayed by another synchronously loaded script.
It only needs to be triggered once per page but calling the script multiple times on a single page will not break anything.
The visit tag helps to capture real landing and bounce rates on your site.
Please fire this event on all pages where no other event is being triggered.
For full information on how to manage your website policy, click here.
It only needs to be triggered once per page, but calling the script multiple times on a single page will not break anything.
Dynamically replace fields surrounded by ## and ## with values, ensuring that all # symbols are removed.
See the table for more information on the fields.
Fields | Overview | Example | Syntax | Required |
|---|---|---|---|---|
Email Address | Email address in plain text (if allowed by the law in your country), sha256 hashed email address, or MD5 hashed email address. | 79054025255fbla26e4bc422aef54eb4... | - Plain text - Sha256 and md5 hashed emails | Required |
Hash Method | The hashing method used for the email. - Doesn't need to be included for plain text emails - For sha265 hashed emails: "sha256" - For md5 hashed emails: 'md5" | sha256 | String | Required |
Phone number | Phone number in SHA256 hashed format or in plain text. Depending on the choice of format, you should use the appropriate event: setSha256HashedPhoneNumber or setPhoneNumber, respectively. Check here for more information. | fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989 | -Plain text phone numbers -SHA256 hashed phone numbers | Recommended |
Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The result that is passed to the tag must not be sent in plain value, it needs to be encrypted (MD5 or SHA256) | 49168a5c8493ec2c0bf489821c21fc3b | String | Recommended |
Visitor ID | A unique Id that is consistent across multiple sessions for an unauthenticated user. Example: First party cookie id | 53e20ea700424f7bbdd793b02abcb5d7 | String | Recommended |
Zip Code | User's shipping address zip code. | 12345 | String | Recommended |
| partnerID is a unique ID that can be found in your Commerce Growth Url. | String | Required |
