SiteData is our advanced personalization option that allows you to show or hide your forms based on any visitor data you have on your site.
đź’ˇ You can use SiteData as a trigger, a targeting option, and in your merge tags.
It’s ideal for preventing cart abandonment and upselling in your store. With SiteData, you can show personalized forms to different visitors based on their cart items, basket value, search queries, operating system, browser language, and much more.
For SiteData to work, you need to set up a trigger in your tag management system (such as Google Tag Manager) that fires a tag based on your variables. That tag sends your data to our SiteData storage, and we show or hide your forms based on that information.
🚨 Note: The data is session-based and is deleted from our SiteData storage when a visitor’s session ends.
For example, if you want to show an Onsite Pop-ups to visitors with a basket value over 500 kr, enter your GTM variable that refers to “basket value” and the value (500 kr) it should be greater than. Now we can show your form only when a visitor adds more than 500 kr worth of items to their shopping cart.
For this to work, you need to send the data to our SiteData storage. Here’s how to set that up.
Send Data to Sitedata
You can send data to SiteData directly or through Google Tag Manager. Go to this page to learn more about each setup.
The next step is to set up SiteData as a trigger or targeting option in your Onsite Pop-up.
How to Set Up the SiteData Targeting Option
To use SiteData as a targeting option (defining who should see your form), go to the Display Settings step of your Onsite Pop-up Builder.
Switch the “SiteData” option on, enter the name of your GTM variable, and set the rules to decide when your form should show or hide.
In our example, the variable is “TotalBasketValue” and it should show to visitors with over 500 kr in their carts.
Now, our form will only show to people who have over 500 kr. in their carts.
How to Set Up the SiteData Trigger
To use SiteData as a trigger (deciding when to show your form), go to the Triggers step of your Onsite pop-up Builder.
Switch the "SiteData Trigger" on, enter the name of your GTM variable, and set the rules to decide when to trigger your form.
If we use the same variable from the above example as a trigger, our form will now show the moment a visitor's basket value exceeds 500 kr.
You can use this trigger to show your form right after a visitor adds an item to their cart, watches 50% of a video, views three products from a category, and so on.
How to Use SiteData Merge Tags
In addition to the trigger and targeting option, the data you send to SiteData can also be used as merge tags to personalize your form copy and to send custom data to your ESP.
Read this guide to learn how to use SiteData merge tags.