Search Queries

On page load, the template reads the one URL param you name. If it has a value, the template sends the goal Search Queries with two custom props. search_query is the param value. search_source is the referrer URL.

Set up

  1. Add the Plausible template as a tag. Set Type to Initialization and enter your Script ID.
  2. Tick Enable Search Query Tracking.
  3. Set Search Query Param to search.
  4. Fire the tag on the Initialization or All Pages trigger. Open GTM preview mode on this site.
  5. In Plausible, create a custom event goal named Search Queries.

Test

Use the forms and links. Each one is a full page load, which fires the tag again.

Expect

Current URL params