Exit-intent tracking recipe creates a custom trigger exit_intent (which is pushed to dataLayer) when a user tries to leave the page (his mouse hovers away from browser window). Useful when you want to fire custom HTML popup or something else to stop the visitor from leaving your website.
- Download Container File
Download the container JSON file (right-click on the link and click “Save Link As” or “Save Target As” to save the JSON file to your computer).
- Import JSON File into GTM
Log into your own Google Tag Manager container and head to the Admin section of the site. Under Container options, select Import Container. Read this blog post for more details about importing a container file.
- Preview & Publish
Use the Preview options to test this container on your own site. Try testing each of the events to make sure they’re working properly. If everything looks good, go ahead and publish!
- This Exit-intent tracking recipe does not send data to Google Analytics or any other web analytics tool.
You’ll need to manually assign trigger from this recipe to a particular tag of yours.