Skip to content

Campaigns

A campaign is a coordinated set of marketing activities aimed at one business goal in a defined window. In analytics, campaigns are measurable units tracked from first touch to conversion.

Campaign anatomy

Every campaign has three components: source, medium, and unique identifier. The hierarchy lets you measure marketing effort precisely.

Source is the platform or site the visitor came from. Examples: google, facebook, newsletter, a partner site. It answers "where did the traffic come from?".

Medium is the type of traffic. Common values: organic, cpc, email, social. It answers "how did they get here?".

Campaign is the unique ID for the initiative. Examples: black_friday_2024, product_launch, brand_awareness_q4. It groups all activity under one goal.

Example structure

A "Summer Sale 2024" launch:

  • Facebook ads: source=facebook, medium=cpc, campaign=summer_sale_2024
  • Email newsletter: source=newsletter, medium=email, campaign=summer_sale_2024
  • Affiliate program: source=partner_blog, medium=referral, campaign=summer_sale_2024

Three channels, one campaign, tracked separately.

UTM parameters

UTM tags are the standard for campaign tracking. They attach to URLs and pass details to analytics on every visit.

Required parameters

ParameterPurposeExample values
utm_sourceSourcegoogle, facebook, newsletter
utm_mediumChannel typecpc, email, social, organic
utm_campaignCampaign IDq4_promo_2024, launch_new_feature

Optional parameters

utm_content separates creatives in the same campaign. Critical for A/B tests:

  • banner_blue vs banner_red
  • headline_emotional vs headline_rational
  • video_15s vs video_30s

utm_term was originally for paid search keywords but works for any extra categorization.

Tagging template

Social:

  • Facebook organic: source=facebook, medium=social
  • Facebook ads: source=facebook, medium=cpc
  • Instagram Stories: source=instagram, medium=stories

Email:

  • Newsletter: source=newsletter, medium=email
  • Triggered: source=crm, medium=email_auto
  • Promo: source=mailchimp, medium=email_promo

Campaign lifecycle

Planning

Set clear, measurable goals before launch. Tie KPIs to business metrics.

Awareness:

  • Unique reach
  • Impressions
  • Direct traffic growth

Engagement:

  • CTR
  • Time on site
  • Page depth

Conversion:

  • Conversion rate
  • Average order value
  • ROI

Launch and monitoring

Track performance in real-time. Modern analytics shows results almost instantly, so you can react fast.

Check UTM tagging, watch for traffic anomalies, compare actuals vs forecast.

Live optimization

Performance data lets you adjust mid-flight:

  • Reallocate budget across channels
  • Adjust targeting
  • Replace weak creatives
  • Update landing pages

Attribution

Models

The attribution model changes how you read effectiveness. Each model splits credit differently.

First-Touch assigns 100% to the first interaction. Best for evaluating new audience acquisition and awareness campaigns.

Last-Touch gives all credit to the last touch before conversion. Useful for understanding what closes deals.

Linear spreads credit evenly. Simple, but treats every funnel stage the same.

Time-Decay gives more weight to touches near conversion. Logic: recent matters more.

Data-Driven uses ML on historical data to compute real contribution. Most accurate, hardest to implement.

Picking a model

First-Touch fits:

  • New audience acquisition
  • Content marketing evaluation
  • Top-of-funnel source analysis

Last-Touch fits:

  • Retargeting
  • Limited-time promos
  • Conversion page evaluation

Multi-touch fits:

  • Long sales cycles
  • B2B campaigns
  • Full-funnel assessment

Campaign ROI

Basic formula:

ROI = (Campaign Revenue - Campaign Costs) / Campaign Costs × 100%

Accurate calculation needs:

  • Full costs (creative, team time)
  • LTV of acquired customers
  • Indirect effects like brand lift

Common mistakes

Technical

Inconsistent UTM tagging fragments data. "Facebook" and "facebook" are counted as different sources.

UTM on internal links distorts sessions. Each click starts a new session, inflating counts and crushing depth.

Parameter loss on redirects happens when intermediate pages drop UTMs. Critical with link shorteners.

Organizational

No naming standard makes comparisons impossible.

Undocumented changes hide why metrics moved. If creative or targeting changes aren't logged, you can't attribute the shift.

Siloed teams duplicate work and bid against each other when running parallel campaigns.

Automation

Dynamic parameters

Ad platforms substitute values at click time. This cuts manual error:

utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={creative}&utm_term={keyword}

Tag management

TMS centralizes tag rules and changes. Keeps data consistent.

Business integration

CRM connection

Linking campaigns to CRM tracks the full journey from first touch to repeat purchase. You can:

  • Compute real customer value
  • Find the most profitable sources
  • Personalize based on acquisition source

Omnichannel attribution

Buyers cross channels. Omnichannel attribution covers:

  • Online and offline touches
  • Cross-device transitions
  • View-through influence
  • Assisted conversions

Omnichannel journey

  1. Awareness: YouTube view, no click
  2. Interest: Brand search → site visit
  3. Consideration: Facebook retargeting click
  4. Intent: Email click → add to cart
  5. Purchase: Direct visit → buy

Each touch contributes. Attribution must reflect this.

Future of campaign tracking

Privacy regulation

Third-party cookie blocking, iOS limits, and privacy-first browsers change tracking. New methods are needed.

Server-side tracking

Server-side moves around browser limits and improves data reliability.

Predictive analytics

ML forecasts campaign performance from historical data. Models predict:

  • Best launch timing
  • Conversion likelihood by segment
  • Audience saturation

Statable approach

Statable is building a flexible parameter system without limits on count or value length.

We are implementing automatic UTM validation in the interface. The system warns about tagging issues before launch, preventing data loss.

We focus on cross-channel attribution that covers all journey touchpoints. Unlike last-click-only tools, Statable supports multiple attribution models tuned to your business.

About AI participation in writing articles

This article, like many others on our site, was created, written and proofread by a team of developers. Of course, not without the participation of AI assistants. We don't hide this and believe that modern systems are already quite good at handling simple tasks and, relatively speaking, writing an article about Viewport yourself is quite strange. It won't come out significantly better and will take a lot of time. But providing basic understanding to beginner webmasters is necessary. Of course, after the article is written by assistants - there's always proofreading, and this is where not one or two people participate, and only after that the article is published.


Ready to optimize campaigns?

Sign up for a free trial of Statable. Get full control over campaign measurement, from first touch to final conversion.


Ready to take control of your web analytics? Try Statable free for 30 days — no credit card required, full feature access, GDPR-compliant by default. Start your free trial or view a live demo.