# Remove ?ref from links in posts

**URL:** <https://forum.ghost.org/t/remove-ref-from-links-in-posts/37701>\
**Category:** Developer help\
**Created:** [April 10, 2023, 7:47am UTC](https://forum.ghost.org/t/remove-ref-from-links-in-posts/37701 "2023-04-10T07:47:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saeed\_mega](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/saeed_mega/32/23939_2.png) [@saeed\_mega](https://forum.ghost.org/u/saeed_mega)\
**Post date:** [April 10, 2023, 7:47am UTC](https://forum.ghost.org/t/remove-ref-from-links-in-posts/37701/1 "2023-04-10T07:47:27Z")

</div>

We have a ghost blog that act as headless cms for our Gatsby website. Lately we notice that links in the blog post has a ‘?ref’ param like `?ref=myblog.ghost.io` we don’t want this ref in our website as it doesn’t make any sense. how can i remove this? is there a built-in settings to disable this? or do i have to use javascript and trim this param from each links in the content?

please advise.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [April 11, 2023, 1:51am UTC](https://forum.ghost.org/t/remove-ref-from-links-in-posts/37701/2 "2023-04-11T01:51:38Z")

</div>

This is called “Outbound link tagging” - you can configure this on the Analytics Settings page (`/ghost/#/settings/analytics`)

---

<div class="post-metadata">

**Author:** ![saeed\_mega](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/saeed_mega/32/23939_2.png) [@saeed\_mega](https://forum.ghost.org/u/saeed_mega)\
**Post date:** [April 11, 2023, 2:23am UTC](https://forum.ghost.org/t/remove-ref-from-links-in-posts/37701/3 "2023-04-11T02:23:10Z")

</div>

Thanks. Actually, solved it by contacting the Ghost support yesterday itself, forgot to close this topic.

---

<div class="post-metadata">

**Author:** ![simonmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/simonmc/32/3579_2.png) [@simonmc](https://forum.ghost.org/u/simonmc)\
**Post date:** [February 27, 2025, 7:46am UTC](https://forum.ghost.org/t/remove-ref-from-links-in-posts/37701/4 "2025-02-27T07:46:09Z")

</div>

> [@vikaspotluri123](#):
>
> This is called “Outbound link tagging” - you can configure this on the Analytics Settings page (`/ghost/#/settings/analytics`

You wouldn’t believe how many hours I’ve spent debugging this. I thought it was GTM, Google Analytics or some other random script.

I can’t thank you enough 😄 🍺
