Plugins
Install Premely with Google Tag Manager
Add the Premely Analytics tag, publish it on all pages and verify one clean pageview.
Google Tag Manager
What it is
The Premely Analytics Google Tag Manager tag installs Premely through GTM's permissioned tag system. It supports pageviews and privacy-safe custom events without a Custom HTML tag, cookies or an API secret.
Why use it
Use this route when your team already manages marketing tags in Google Tag Manager and wants Premely under the same release workflow.
Before you start
- Create the site in Premely and copy its public site key and canonical hostname.
- Remove any direct Premely script, SDK or platform installer before you publish the GTM tag.
How to use it
- 1
Add the Premely Analytics tag
In your GTM web container, add the
Premely Analyticstag from Templates.Product screenshot placeholderGoogle Tag Manager - Premely Analytics
Capture focus: Tag configuration, trigger and preview
1Site key2Initialization trigger3PreviewReplace this slot with the matching production surface and numbered callouts before publishing. - 2
Enter the site configuration
Paste the public site key, enter the canonical hostname, keep the environment set to Production and choose Pageview.
- 3
Use the initialization trigger
Set the trigger to
Initialization - All Pagesso Premely loads before other page-level tags rely on it. - 4
Preview, then publish
Use GTM Preview to confirm one Premely pageview on the public site. Publish the container, then verify the connection in Premely.
What to expect
Use one Premely install only
Do not run a separate Custom HTML snippet or another Premely configuration alongside the GTM tag. Conflicting configurations stop rather than forwarding a pageview.
Custom events use a second tag
For a custom event, add another Premely Analytics tag, choose Custom event, use safe scalar properties and attach the appropriate GTM trigger.
Useful ways to apply this
A marketing team release
Preview the tag before publishing the container so the team can confirm one clean pageview without a code deployment.
A defined conversion action
Create one custom-event tag for a meaningful action, then make a Premely goal from the event name.