# Adding \`utm\_source\` parameter for website analysis

**URL:** <https://socialhub.activitypub.rocks/t/adding-utm-source-parameter-for-website-analysis/3902>\
**Category:** Welcome\
**Created:** [February 3, 2024, 2:53pm UTC](https://socialhub.activitypub.rocks/t/adding-utm-source-parameter-for-website-analysis/3902 "2024-02-03T14:53:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krosylight](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/k/9dc877/32.png) [@krosylight](https://socialhub.activitypub.rocks/u/krosylight)\
**Post date:** [February 3, 2024, 2:53pm UTC](https://socialhub.activitypub.rocks/t/adding-utm-source-parameter-for-website-analysis/3902/1 "2024-02-03T14:53:35Z")

</div>

Hi SocialHub people! I got some idea that I’d like to discuss with more people.

Although many people are enjoying the fediverse, there are still skepticism outside the space about how much their voice can reach in this space. Those people argue that the portion of people in the fediverse is just negligible and it’s much more worth being active on existing Big Tech social spaces, as they simply have more people. As the result, there are still a lot of activists and non-profits that are active exclusively outside of the fediverse. (But does having many people always mean your voice can be more reachable? That depends a lot on their complex algorithms…)

Having been unable to convince them as an individual, what if we could tell them and remind them we exist here, by inserting some data into their traffic analyzer (if they have one)? `utm_source` is frequently a URL parameter read by such analyzer, so I wonder whether we can add `utm_source=fediverse` when serving URL links so that opening the page would tell the website owners that the traffic is from the fediverse users.

Suggested behavior: When a URL in a post has no `utm_source` parameter, add `utm_source=fediverse` when rendering the link. `https://example.com` would become `https://example.com/?utm_source=fediverse`.

So what I want here is:

1. Gather some consensus about whether this is a good idea or no-go
2. If we agree, multiple implementations can support `fediverse` as the common `utm_source` value
3. Discuss whether this should be opt-in/out

What do you think?

---

<div class="post-metadata">

**Author:** ![stevebate](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/stevebate/32/2763_2.png) [@stevebate](https://socialhub.activitypub.rocks/u/stevebate)\
**Post date:** [February 3, 2024, 3:26pm UTC](https://socialhub.activitypub.rocks/t/adding-utm-source-parameter-for-website-analysis/3902/2 "2024-02-03T15:26:58Z")

</div>

Welcome to SocialHub!

Eugen commented on this topic last fall.

> **[Eugen Rochko (@Gargron@mastodon.social)](https://mastodon.social/@Gargron/111410657968097337)**
>
> @oconnell@texasobserver.social Even if we didn’t hide the referrer in the browser, a lot of people are using apps to access Mastodon, which never send referrers. The best option is putting something like utm\_campaign on the links.

FWIW, these are the codes I currently see in my database:

```auto
 utm_campaign=buffer
 utm_campaign=linkprogram
 utm_campaign=mastodon
 utm_campaign=p_na
 utm_channel=mastodon
 utm_content=surf
 utm_medium=directpost
 utm_medium=mastodon
 utm_medium=social
 utm_medium=web
 utm_source=customer
 utm_source=mastodon
 utm_term=undefined

```

Fun fact… UTM is an acronym for “Urchin Tracking Module”. [[reference](https://blogs.unb.ca/marketing/2016/09/utm-tracking-codes--what-are-they-and-why-do-they-matter-.php)]

---

<div class="post-metadata">

**Author:** ![krosylight](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/k/9dc877/32.png) [@krosylight](https://socialhub.activitypub.rocks/u/krosylight)\
**Post date:** [February 3, 2024, 3:32pm UTC](https://socialhub.activitypub.rocks/t/adding-utm-source-parameter-for-website-analysis/3902/3 "2024-02-03T15:32:00Z")

</div>

Interesting that you already got some `utm_source/medium/channel/campaign=mastodon`, I guess there already are some implementations, perhaps Mastodon share buttons?

---

<div class="post-metadata">

**Author:** ![aschrijver](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/aschrijver/32/278_2.png) [@aschrijver](https://socialhub.activitypub.rocks/u/aschrijver)\
**Post date:** [February 4, 2024, 7:08am UTC](https://socialhub.activitypub.rocks/t/adding-utm-source-parameter-for-website-analysis/3902/4 "2024-02-04T07:08:42Z")

</div>

While only having an `utm_source` isn’t too bad, I find the tight relationship of this mechanism to tracking, marketing and ads and plenty related ad-tech tools (in particular [privacy-infringing Google Analytics](https://plausible.io/blog/google-analytics-illegal)) to be problematic.

My preference is not to encourage bringing ad-tech to the Fediverse. I am not naive and know this will happen eventually. Adding this param will not just attract activists and non-profits, it will have most effect on folks that use tracking tools the most, i.e. marketeers in commercial entities.

In any case imho such feature should certainly be opt-in. For any feature on the Fediverse that affects privacy that should be the default.

In the past I used a token stripper extension in Firefox to auto-remove this stuff. There’s Tracking Token Stripper and ClearURLs among others, see [delightful-humane-design](https://delightful.club/delightful-humane-design/#tracking) list.

I witness people using UTM on the Fediverse more and more often, and I both avoid clicking these links and boosting the toots that contain them. So, I am on the opposite spectrum wrt using this, and may consider reinstalling a stripping extension and also might well integrate a UTM stripper in a fedi app.

---

<div class="post-metadata">

**Author:** ![krosylight](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/k/9dc877/32.png) [@krosylight](https://socialhub.activitypub.rocks/u/krosylight)\
**Post date:** [February 4, 2024, 9:11am UTC](https://socialhub.activitypub.rocks/t/adding-utm-source-parameter-for-website-analysis/3902/5 "2024-02-04T09:11:47Z")

</div>

Good point! Hmm, if implementations ever add utm, it should also be easy to remove utm, so maybe it should be recommended to provide three options:

1. Add utm\_source=fediverse (and override existing utm\_source? 🤔)
2. Remove utm (and potentially also all well-known tracking parameters, as Firefox does with Copy Link without Site Tracking)
3. Leave them intact
