Knowledge Base      


What are the optional Campaigns “cmc” Parameters?


In addition to UTM parameters, Campaigns also supports a bunch of ClickMagick-specific parameters you can add to your URLs or website code to enable advanced features or to override default settings.

Note that parameters in the URL will always override the same parameter specified in your website code …

 
cmc_project    A Campaigns Project allows you to track all your traffic and conversions for a single website or online store – no matter how many ad campaigns, ads or traffic sources you have. This Project name is part of your tracking code, but it can also be overridden if necessary.

If you need to track multiple projects on the same domain (or subdomains) or want to change the Project name for any other reason you can add cmc_project=some-project-name to your URLs to associate the click or conversion with any Project you want. As always, just be sure to use a consistent naming convention and don’t make typos!

If you use cmc_project to change the project name, you must use it in URLs to your conversion pages, or include the parameter in Conversion Tracking Code for each page. If you don’t consistently specify your alternate project name, conversions may be attributed to the default project (your root web domain) and make it look like your conversions aren’t firing at all.
 
Note: Project names can only contain letters, numbers, hyphens ‘-’, underscores ‘_’, periods ‘.’ and spaces, and can be up to 100 characters long.

 
cmc_cpc   If you’d like to pass in a cost-per-click simply add cmc_cpc=1.00 to your URLs for example.
 
cmc_goal   Used to specify or override goal settings for a URL.

Acceptable values are a for an action, e for an engagement and s for a sale e.g. cmc_goal=a

If the page you’re redirecting to has a goal on the page using website conversion code and you don’t want that goal to fire, you can also specify cmc_goal=n which will cause a click to be recorded (if there are utm values) rather than a goal. For example, when retargeting you can send users back to a goal page in the middle of your funnel.
 
cmc_upsell   Set this to true if you want a sales goal tagged as an upsell, e.g., cmc_goal=s&cmc_upsell=true
 
cmc_orderbump   Set this to true if you want a sales goal tagged as an order bump, e.g., cmc_goal=s&cmc_orderbump=true
 
cmc_recurring   Set this to true if you want a sales goal tagged as a recurring sale, e.g., cmc_goal=s&cmc_recurring=true
 
cmc_ref   An additional tracking parameter you can use for anything you want, e.g. cmc_goal=a&cmc_ref=optin

When it comes to tracking conversions, even though cmc_ref is technically optional, we highly recommend you get in the habit of always providing a unique “ref” value for each of the goals or conversions you track.

This will provide the most clarity in your stats and reports, and it’s actually required for certain functionality like the Funnel Steps Report, Split Testing, or tracking multiple sales to the same customer.

For example, if you need to track multiple conversions of the same type for the same user i.e. an initial sale and an upsell (which is also a sale), you’ll need to specify a unique “ref” value for each conversion e.g. cmc_ref=sale for the initial sale and cmc_ref=upsell for the upsell sale.

The reason for this is that by default ClickMagick will not track duplicate conversions, and without unique “ref” values to differentiate the sales any additional sales appear to be duplicates.

Note: If cmc_ref contains the text upsell, the sale will be marked internally as an upsell and will be reflected in the “Upsells” stat in the main dashboard. If cmc_ref contains the text recurring or subscription, the sales will be reflected in the “Recurring” stat on the main dashboard.

 
cmc_amt   Used to specify a sales amount in conjunction with a sales goal e.g. cmc_goal=s&cmc_amt=99.00
 
cmc_currency   This should be a three-character currency code (e.g. USD or EUR) and can be used to specify the currency of cmc_amt if it’s different from your Campaigns Project currency setting. In this case the cmc_amt amount would be automatically converted to your Campaigns Project currency. This only affects cmc_amt and does not affect cmc_cogs in any way. ISO Currency Codes
 
cmc_vid   Used to enable cross-device tracking, and also to pass a unique Visitor ID from one domain to another in the case where parts of your funnel are spread across different domains e.g. https://othersite.com/nextpage.php?cmc_vid=[cmc_vid]

 
Note: Cross-device and cross-domain tracking is available on the Standard and Pro plans. If you’re on the Starter plan you’ll need to upgrade to use this functionality and this parameter.
 
 
cmc_strip   UTM URLs can get pretty long and “ugly.” If you add cmc_strip=utm to your URLs the UTM parameters will be removed from the URL in the address bar once the visitor lands on your page and their visit has been tracked. Any optional ClickMagick “cmc” or Google gclid parameters will be removed as well.

Just keep in mind that if you strip the UTMs then those values may or may not be available to other analytics or tracking codes you have on the page e.g. Google Analytics or Facebook’s pixel.

If you want to strip just the ClickMagick cmc parameters and keep the remaining parameters you can also use cmc_strip=cmc
 
cmc_click   You can add cmc_click=n to any URL if you don’t want click tracking performed on the page.

This setting is useful when you have a funnel with two landing pages, where one of the landing pages is a page in the funnel of the other landing page. In other words, let’s say that your first landing page has an opt-in page that goes to a sales page and the sales page is also a landing page for ads where you want to skip the opt-in page. To set this funnel up, you would add click tracking code to both pages and set cmc_click=n in the URL from the opt-in page to the sales page. Setting the option would turn off click tracking for the sales page, but only if the click came from the opt-in page.
 
cmc_ignore   You can add cmc_ignore=yes to any URL if you don’t want any click or conversion tracking to take place.

You can use this option if you want to turn off both click tracking and conversion tracking at the same time. This is essentially the same as setting both cmc_click=n and cmc_goal=n simultaneously.
 
cmc_unique   By default, ClickMagick will record one unique click per user per day per “set” of UTM parameters.

If you want to override this behavior, simply set cmc_unique to a different number of days. For example if you only want to track one unique click per user every 7 days, you would add cmc_unique=7 to your URLs or cmc_unique: 7, to your click tracking code.

If you want to count every click as unique, you can also set cmc_unique=0 or cmc_unique: 0,

When it comes to conversions, cmc_unique can be used to disable the “duplicate check” that ClickMagick normally does when processing sales.

For example, if ClickMagick sees multiple conversions from the same customer for the same amount and the same “ref” value, we’ll only record a single conversion – because this is almost always caused by the customer loading your “thank you” page multiple times.

However, if you do want such “duplicate conversions” to be tracked, you can simply set cmc_unique=0 in your URLs or cmc_unique: 0, in your conversion tracking code.
 
cmc_redir   Used to provide a different URL the visitor will be redirected to after the click is processed. See:

How do I track link or button clicks?
 
cmc_redir_wait
 
  Used with cmc_redir. Normally, when using cmc_redir there is a 600ms wait before the redirection takes place. This gives the cmc.js script time to perform some necessary operations before the redirection takes place. With some websites, however, you may need to increase the wait time if you find that clicks or goals are not consistently being recorded before the redirect. 600ms is normally plenty of time, but if you’re using cmc_redir and you are not seeing clicks and goal recorded consistently, set cmc_redir_wait to 800 or higher until you see your activity recorded consistently. E.g., cmc_redir_wait: 800,
 
cmc_tid   Used to represent the Click ID or Transaction ID that was originally sent to ClickMagick by the original service (typically a traffic source).

One example of use for this is if you are passing in a tracking ID using the cmc_tid parameter of your UTM-powered links.
 
cmc_adid   Used to pass your ad network Ad IDs to ClickMagick when people click your ads, primarily for use with Auto Cost. You shouldn’t try to set the value for this parameter manually. Instead, use the URL Builder to enable Auto Cost when building your ad URLs and this parameter will be set up automatically.
 
cmc_cogs   Used to provide ClickMagick with your Cost Of Goods Sold (COGS) for each sale if you want that included in your cost-based stats. You can set cmc_cogs to an amount like 12.95 or to a percentage of cmc_amt by adding pct to the value, like 10pct. For example, cmc_amt=25.00&cmc_cogs=10pct would set cmc_cogs to 2.5 for that sale. You can learn more here:

How do I set my Cost of Goods Sold (COGS) in ClickMagick?
 
     
     
    These parameters are used for passing visitor information to ClickMagick:
     
cmc_email   Record the email address of the visitor.
 
cmc_firstname   Record the first name of the visitor.
 
cmc_lastname   Record the last name of the visitor.
 
cmc_fullname   Record the full name of the visitor. Internally, this is broken into cmc_firstname and cmc_lastname at the first space, so, “John F. Kennedy” would record “John” as cmc_firstname and “F. Kennedy” as cmc_lastname.
 
cmc_mobile
 
  Record the mobile number of the visitor.
 
cmc_phone
 
  Record any other phone for the visitor.
 
cmc_gender
 
  Record the gender of the visitor.
 
cmc_date_of_birth
 
  Record the date of birth of the visitor.
 
cmc_city
 
  Record the city of the visitor.
 
cmc_state_prov
 
  Record the state or province of the visitor.
 
cmc_postal_code
 
  Record the postal code of the visitor.
 
cmc_country
 
  Record the country of the visitor.
 


Article 447 Last updated: 05/14/2024 2:05:03 PM
https://www.clickmagick.com/kb/?article=447