Query Params

On page load, the template reads each param you list. It sends the ones that have a value as custom props on the goal Query Params.

Set up

  1. Add the Plausible template as a tag. Set Type to Initialization and enter your Script ID.
  2. Tick Enable Query Param Tracking.
  3. Add these rows: utm_source, utm_medium, utm_campaign.
  4. Do not add secret. It checks that unlisted params are ignored.
  5. Fire the tag on the Initialization or All Pages trigger. Open GTM preview mode on this site.
  6. In Plausible, create a custom event goal named Query Params.
  7. If the props do not show up, add them under the site's custom properties settings.

Test

Click each link. Each click is a full page load, which fires the tag again.

Expect

Current URL params