Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Analytics
English French
English French

Can I combine Google UTM and AT campaign tags in one URL?

Yes. You can put Google UTM parameters and Piano Analytics at_ campaign parameters in the same URL. A URL can only have one query string, which starts with the ? character, so all the campaign parameters must go in that same query string, each separated by &.

URL structure

Use a single ?, then list all the parameters separated by &:

https://myurl.com/?utm_source=...&utm_campaign=....&at_medium=....
  • Don't add another ? between groups of parameters. It breaks the query string and prevents correct parsing.

  • Follow the standard at_ tagging rules. For example, avoid unsupported or special characters in at_ parameter values, as they can prevent the campaign from being collected.

Priority between at_ and utm_

When you configure several prefixes, Piano Analytics evaluates them in order, and the first prefix has priority. For example, with campaignPrefix: "at_,utm_":

  • If at_ parameters are detected, they are used first.

  • If no at_ parameters are found, Piano Analytics analyzes the utm_ parameters.

For example, a link with both at_campaign=spring and utm_campaign=newsletter is attributed to the "spring" campaign with this configuration.

Use only UTM parameters

To use only UTM parameters as campaign sources, without adding at_ tagging, configure utm_ as the only prefix:

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

For more on this, see UTM management.

Last updated: