There are slight differences to Manual integration if you are integrating via a tag manager. For this example, we will be looking at Google Tag Manager (GTM).
Initialization script
Place the Initialization Script in a tag that is visible in the head template on all pages. Please add dynamic data layer variables next to email, first name, and last name.
Example tag configuration - Screenshot, Screenshot 2
Note: You can attach it to the page view trigger as long as Data Layer variables used in a script (like email) are present on the page view.
Post Purchase script
Add combined Initialization and post-purchase script as a second single tag for the checkout confirmation page.
Example tag configuration - ScreenshotTag Manager Data Layer to Pass Variables
You’ll need to ensure a data layer object is set up to collect and pass the variables to Talkable inside your tag.
Verifying success
- Open Talkable admin, open or create Floating widget campaign. Scroll down to the Placements section and click on the eye button. It will open up your site with the Talkable campaign shown in test mode.
- Submit a purchase through your site
- Open Talkable admin, go to Reports -> Purchases and find your purchase in the list
Contact support@talkable.com in case of any issues.