Implementing Exponea via Google Tag Manager


Google Tag Manager (GTM) is a free web application that allows you to remotely execute code snippets in your web site without requiring direct access to the codebase. This means that you are able to add Exponea JavaScript client to your site even without the need for a programmer.

Basic implementation

We assume that you already have created a GTM container for your website. If you don’t have a container yet, create one according to the setup & installation guide.

1. Create a new tag

When you are inside your container, click on the Add a new tag button in the container homepage or click on  New in the Tags subpage.

2. Choose “Custom HTML tag”

After creating a new tag you have the option to choose a product the tag will be based upon. Choose Custom HTML tag.

3. Configure Tag and click continue

Now copy-paste the Exponea JavaScript code snippet you were given or if you are advanced user you can take a look at possible alternatives in the JavaScript SDK guide.

4. Choose fire on All pages and click Create Tag

You can also choose to rename the tag, we decided to name it “New Exponea Tag”.

Created tags can found in the Tags section of the container.

5. Publish changes

After you have created a new tag you can see that Unpublished Changes counter incremented by one. To publish new tags you must click the Publish button and then confirm by clicking the Publish now button.

And that’s it. You now have Exponea JavaScript Client added to your website. You can check if data are being sent to Exponea in the Overview or Customers section.