Next Commerce
Offers Guide

Marketing Attribution

>-

Pass marketing source attribution values with your orders to collect marketing and affiliate attribution data for reporting visibility, and partner marketing postbacks - for example when using tracking extensions like Everflow.

Source attribution values are supported on the Storefront checkout and product pages, as well as on custom funnels integrated via the Admin API.

Pass Google UTM parameters, Affiliate / Sub-Affiliate, and Funnel values according to the unique source or marketing path. You may use the source attribution data when firing tracking pixels on the success / confirmation page.

Querystring Parameters

URL ParameterDetailCookie
utm_sourceThe referrer: (e.g. google, newsletter)marketing
utm_mediumMarketing medium: (e.g. cpc, banner, email)marketing
utm_campaignProduct, promo code, or slogan (e.g. spring_sale)marketing
utm_termIdentify the paid keywordsmarketing
utm_contentUse to differentiate adsmarketing
funnelUse to attribute funnelsmarketing
gclidAdwords click IDmarketing
evclidEverflow Click IDmarketing
affMain affiliate / networkaffiliate
sub1Sub affiliate 1affiliate
sub2Sub affiliate 2affiliate
sub3Sub affiliate 3affiliate
sub4Sub affiliate 4affiliate
sub5Sub affiliate 5affiliate
attribution_metadata.KEY=VALUEAttribution Metadata key/value pairmarketing
clear_attributiontrue (default) / falsemarketing

Last Click Attribution

Next Commerce applies a "Last Click" attribution model by default, meaning that attribution values are applied based on the most recent visit. You may customize and control this behavior using the custom querystring parameter clear_attribution

To preserve the "First Click" attribution values on a returning visitor, pass the querystring parameter clear_attribution=false

If you wish to apply additional attribution values to an existing visitor, you may pass clear_attribution=false in the querystring, along with the additional querystring parameters which will be saved alongside the intial values. The most recent attribution value will take precendence in case of a duplicated value -- for example existing sub4=abc and new click sub4=123, value of 123 will be applied on sub4 field.

Cookies

Two cookies are generated for the attribution data, split by marketing for UTM/Google parameters, and affiliate source values.

CookieDetailExpires
AffiliateDataaffiliate source data1 day
MarketingDatamarketing source databrowser close
sessionidcm session id of userbrowser close

Data Storage

The marketing source attribution data is kept in the cookies and sent to the store's database when a cart is created and associated to a customer. All marketing source attribution data is stored in its own data model, which can be queried from carts, orders, and subscriptions for reporting purposes.

On this page