When we send traffic to FxA signups, we need to send uniform parameters so measurement is straightforward.
For the entrypoint url parameter that we generate and send to FxA servers, please use the following standard format: domain-point_of_CTA. Examples from our existing site:
We may add other entrypoints later.
If the link is part of an experiment we can indicate that the referral came from an experiment by adding the additional parameters entrypoint_experiment and entrypoint_variation
We don’t have a global function for this yet, so far it has been coded as needed for specific pages.
When using the fxa_link_fragment macro add the class js-fxa-link-cta to the link.
If there are not valid UTM parameters, we should add site-default utm parameters from Mozilla.org in the following format:
utm_content=[urlsafe content of CTA]&utm_source=www.mozilla.org&utm_medium=referral&utm_campaign=[urlsafe category of CTA]
Here is an example from our current site:
If there are valid UTM parameters in the URL we should copy them onto the link to FxA.
For datalayer values in FxA links, please use the following standard format: FxA-ServiceName. Examples from our existing site:
We may add other data link types later.
You can combine this with data-link-name to provide more information.
Do not use data-link-type and data-button-name together, GA will log two events instead of one.