# Adding Tags OnClick on an Link in an email

**URL:** <https://forum.mautic.org/t/adding-tags-onclick-on-an-link-in-an-email/4815>\
**Category:** Product Support\
**Created:** [August 9, 2016, 5:13pm UTC](https://forum.mautic.org/t/adding-tags-onclick-on-an-link-in-an-email/4815 "2016-08-09T17:13:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbao](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mbao](https://forum.mautic.org/u/mbao)\
**Post date:** [August 9, 2016, 5:13pm UTC](https://forum.mautic.org/t/adding-tags-onclick-on-an-link-in-an-email/4815/1 "2016-08-09T17:13:29Z")

</div>

Hello,  
  
  
  
I would like to “tag” links in E-Mails to track the “user interests”. There would be 3 Links with different content and the user would “self-segment” himself by clicking on the links (with attached “tags=interestA” appended).  
  
  
  
But: In the source code I found out, that this feature is not planed and only with the tracking pixel there is the possibility to set tags.  
  
[https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L451](https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L451)  
  
  
  
Do I misunderstood the feature?  
  
  
  
Thanks,  
  
Michael

---

<div class="post-metadata">

**Author:** ![mbao](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mbao](https://forum.mautic.org/u/mbao)\
**Post date:** [August 9, 2016, 5:13pm UTC](https://forum.mautic.org/t/adding-tags-onclick-on-an-link-in-an-email/4815/2 "2016-08-09T17:13:29Z")

</div>

Hello,

I would like to “tag” links in E-Mails to track the “user interests”. There would be 3 Links with different content and the user would “self-segment” himself by clicking on the links (with attached “tags=interestA” appended).

But: In the source code I found out, that this feature is not planed and only with the tracking pixel there is the possibility to set tags.  
[https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L451](https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L451)

Do I misunderstood the feature?

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![mbao](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mbao](https://forum.mautic.org/u/mbao)\
**Post date:** [August 9, 2016, 5:31pm UTC](https://forum.mautic.org/t/adding-tags-onclick-on-an-link-in-an-email/4815/3 "2016-08-09T17:31:25Z")

</div>

Maybe it would make sense to post the use case:  
First I would like to send an email (campagin triggered) with Link A and Link B.

In the next Step I would like to E-Mail all people who clicked on “Link A”. How could I go this way?

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.mautic.org/u/Adam)\
**Post date:** [August 9, 2016, 5:39pm UTC](https://forum.mautic.org/t/adding-tags-onclick-on-an-link-in-an-email/4815/4 "2016-08-09T17:39:24Z")

</div>

You have to do it via a campaign, if X page is visited, add tag. It’s very easy.

---

<div class="post-metadata">

**Author:** ![mbao](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mbao](https://forum.mautic.org/u/mbao)\
**Post date:** [August 11, 2016, 6:45am UTC](https://forum.mautic.org/t/adding-tags-onclick-on-an-link-in-an-email/4815/5 "2016-08-11T06:45:13Z")

</div>

> [@14264:@Adam](#):
>
> You have to do it via a campaign, if X page is visited, add tag. It’s very easy.

Thanks for the fast response: But is it possible to track external links this way? Or is it necessary to have the tracking pixel on the target page?

---

<div class="post-metadata">

**Author:** ![loanatik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/loanatik/32/1923_2.png) [@loanatik](https://forum.mautic.org/u/loanatik)\
**Post date:** [August 12, 2016, 4:10am UTC](https://forum.mautic.org/t/adding-tags-onclick-on-an-link-in-an-email/4815/6 "2016-08-12T04:10:56Z")

</div>

If we create a campaign as suggested what contact source would we use? It’s not a form submission and using a template seems kinda clunky.
