Skip to main content
Skip table of contents

Is it possible to combine Google UTM and AT campaign tags in one URL?

Yes—it's possible to combine Google UTM parameters and Piano Analytics at_ campaign parameters in the same URL.

Because a URL can contain only one query string (the ? character), you must include all campaign parameters in that same query string and separate each parameter with &.

Recommended URL structure

Use a single ?, then list all parameters separated by &. For example:

CODE
https://myurl.com/?utm_source=...&utm_campaign=....&at_medium=....

Important notes

  • Do not place another ? between parameter groups. This breaks the query string and prevents correct parsing.

  • Follow the standard at_ tagging rules (for example, avoid unsupported/special characters in at_ parameter values, as they may prevent campaign collection).

Priority between at_ and utm_

When multiple prefixes are configured, Piano Analytics evaluates them in order. The first prefix has priority:

  • With campaignPrefix: "at_,utm_", if at_ parameters are detected, they are used first.

  • If no at_ parameters are found, then utm_ parameters are analyzed.

Using only UTM as campaign sources

If you want to use only UTMs as campaign sources (and avoid adding Piano at_ tagging), you can configure only utm_:

CODE
pa.setConfigurations({
  website: 123456789,
  collectDomain: "",
  campaignPrefix: "utm_"
});

You can find more information on this topic by following this link: https://developers.piano.io/analytics/data-collection/how-to-send-events/marketing-campaigns/#utm-management

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.