agentlyticsby measuremy.site

How to track the results of a social media post without cookies

A person using a laptop to review social media marketing strategies at home.
Photo by Darlene Alderson on Pexels

When you share a link on Twitter, LinkedIn, or Instagram you want to know two things:

You can answer both questions without relying on cookies or third-party scripts. The workflow below uses a cookieless tracker, UTM parameters, and a simple funnel built in the analytics dashboard. All of the steps can be automated by a coding agent such as Claude Code, Cursor, or Codex.

1. Tag the destination URL with UTM parameters

UTM tags let you attribute traffic to a specific social channel, campaign, and piece of content. A typical URL looks like this:

https://example.com/guide?utm_source=twitter&utm_medium=social&utm_campaign=product_launch&utm_content=post_2024_09

Add the parameters directly in the link you share, or use a URL shortener that preserves them.

2. Install the cookieless analytics script

If you haven’t already, add the single script tag to every page you want to track. Replace YOUR_KEY with the key you receive after signing up:

<script defer src="https://a.measuremy.site/t.js" data-key="YOUR_KEY"></script>

No cookies, no local storage. Each visitor gets a daily-reset anonymous ID, so the data stays privacy-friendly while still giving you pageviews, source breakdowns, and device info.

3. Define the conversion you care about

Most social media posts aim at a downstream goal: a newsletter sign-up, a demo request, a download, etc. Mark the element that represents that action with a data attribute so the tracker records a custom event.

<button data-agentlytics-event="signup_click">Sign up</button>

You can add similar attributes to forms, links, or any clickable element. The event name is free-form; just be consistent across pages.

4. Build a funnel in the dashboard

The analytics UI lets you create a funnel from the page path and custom events. A typical funnel for a social post might be:

  1. Landing page – the URL you linked to (e.g., /guide)
  2. Key page – a deeper page that indicates interest (e.g., /pricing)
  3. Conversion event – the custom event you set (signup_click)

The funnel automatically groups visits that contain the same UTM parameters, so you’ll see a separate conversion rate for each social post.

5. Use the MCP server for programmatic insights

If you prefer to let a coding agent generate reports, paste a single sentence into the agent:

Add agentlytics analytics to this project. Follow the instructions at measuremy.site/llms.txt

The agent will read the analytics via the MCP server, extract the funnel data, and can even draft a summary like “Twitter post #23 generated 120 visits, 8 sign-ups, 6.7 % conversion”. This eliminates manual clicks in the UI and keeps your reporting workflow in code.

6. Spot traffic spikes and diagnose causes

After the post goes live, monitor the “traffic spikes” indicator in the dashboard. If a spike appears, the system suggests likely sources (e.g., “UTM source=twitter, content=post_2024_09”). This helps you confirm that the bump really comes from the social post and not from unrelated referrals.

7. Compare multiple posts

When you run several variations (different headlines, images, or posting times), use the utm_content tag to differentiate them. The dashboard will show each content variant side by side, with metrics such as:

Choose the variant with the highest conversion rate and replicate its elements in future posts.

8. Keep the numbers within the free plan

The free tier covers up to 5,000 pageviews a month. If a single campaign is expected to generate more traffic, consider:

9. Verify attribution with a manual check

Even with UTM tags, occasional mis-attribution can happen (e.g., if a user clicks the link from an email that also contains UTM parameters). To double-check:

  1. Open the destination page in an incognito window.
  2. Paste the exact URL you plan to share.
  3. Look at the analytics “real-time” view to confirm the source appears as expected.

Doing this once per campaign validates that your tagging is correct.

10. Turn insights into action

After the campaign ends, export the funnel data (CSV or similar) and answer these questions:

Use the answers to refine your next set of UTM parameters, adjust posting times, and tweak the landing page layout.

---

Measuring the results of a social media post doesn’t have to involve invasive tracking or complex setups. By combining UTM tagging, a single cookieless script, and a straightforward funnel, you get a clear picture of traffic and conversions while staying privacy-first. The same workflow scales from a single tweet to a multi-platform campaign, and with the MCP server you can automate the reporting step entirely.

Keep the process tight, monitor spikes, and iterate based on the funnel data – that’s the most reliable way to turn social shares into measurable business value.

See it on your own site

agentlytics is cookieless analytics your coding agent can read. Free for 5,000 pageviews a month, no card.

Start free See the live demo

Add agentlytics analytics to this project. Follow the instructions at measuremy.site/llms.txt

More from the blog