Learn more about the different variants of the @codeqr/analytics script.
script.js
, and all variants are available on script.[variant].js
.
For instance, the outbound-domains
variant is available on script.outbound-domains.js
.
You can also mix and match variants. For example, you can use the site-visit
and outbound-domains
variants together with this script: script.site-visit.outbound-domains.js
.
script.js
)cq_id
query parameter and storing it as a first-party cookie.script.site-visit.js
)@codeqr/analytics
site visit feature is still in beta.script.outbound-domains.js
)cq_id
cookie to all outbound links targeting the domains you configure.
Here’s how you can use the outbound domains variant:
site-visit
and outbound-domains
variants together with this script: script.site-visit.outbound-domains.js
.
Here’s how you can use the combined variant:
CodeQRAnalytics
React ComponentCodeQRAnalytics
component to automatically apply the correct script variant for you.
For example, if you want to use the outbound-domains
variant, you can do the following:
CodeQRAnalytics
component will automatically detect the domainsConfig
prop and apply the correct script variant for you.