# Bulk creating unique links for mailouts

**URL:** <https://forum.mautic.org/t/bulk-creating-unique-links-for-mailouts/16542>\
**Category:** Product Support\
**Created:** [October 13, 2020, 1:08pm UTC](https://forum.mautic.org/t/bulk-creating-unique-links-for-mailouts/16542 "2020-10-13T13:08:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg.harvey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/greg.harvey/32/2992_2.png) [@greg.harvey](https://forum.mautic.org/u/greg.harvey)\
**Post date:** [October 13, 2020, 1:08pm UTC](https://forum.mautic.org/t/bulk-creating-unique-links-for-mailouts/16542/1 "2020-10-13T13:08:24Z")

</div>

Using Mautic 2.x

This is more a question than a problem - if you make links in emails you’re sending using the right tokens you get a proper, trackable Mautic link and, if somebody clicks it, records their activity properly against their contact record. Is there a way to get a link like this for everybody in a given Segment for use in a physical mailout, like a letter? What we want is to get a list of trackable Mautic links that we can send to a mailout company, so they can use those links to generate QR codes to print on to a physical letter that gets posted.

I can’t see a way to do this, anyone know of anything?

Thanks in advance,

Greg

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 13, 2020, 2:55pm UTC](https://forum.mautic.org/t/bulk-creating-unique-links-for-mailouts/16542/2 "2020-10-13T14:55:17Z")

</div>

Why not use the campaign logic to do this? If the postcard has a call to action to visit [xyz.com/](http://xyz.com/) you can track who visits that particular page as long as the mautic pixel is present and the cookie or ip match.

 ![Screenshot (35)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/00e6b0d05b5c4baf474d90e2582840ee1d6f4bfc.png)

You can also do it with point triggers

 ![Screenshot (36)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/8d1a61df26c413666e9344a5ff2cfcc96f3bdfbd.png)

---

<div class="post-metadata">

**Author:** ![greg.harvey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/greg.harvey/32/2992_2.png) [@greg.harvey](https://forum.mautic.org/u/greg.harvey)\
**Post date:** [October 13, 2020, 4:23pm UTC](https://forum.mautic.org/t/bulk-creating-unique-links-for-mailouts/16542/3 "2020-10-13T16:23:59Z")

</div>

That’s the issue, these are cold contacts so there’s no guarantee there’s a cookie present or an IP recorded - in fact, almost certainly not… 🤔

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 13, 2020, 5:51pm UTC](https://forum.mautic.org/t/bulk-creating-unique-links-for-mailouts/16542/4 "2020-10-13T17:51:07Z")

</div>

Generate random codes equal to the amount of contacts. Export your mautic leads. Add a custom field in Mautic that says awesome\_code. Copy Paste your random codes to a column of you export and rename it awesome\_code  
Re-Import Leads - Should append your awesome\_code to contacts.

Use dynamic content box in landing page and have the field be awesome\_code.  
If the code is displayed it matches a person you appended awesome\_code to you, and have just identified them.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [October 13, 2020, 6:02pm UTC](https://forum.mautic.org/t/bulk-creating-unique-links-for-mailouts/16542/5 "2020-10-13T18:02:12Z")

</div>

You can use contact ID.  
Export your contacts. Then you can generate QR code based on a special smart link with an ID with a php script during the printing process.  
The QR code can point at a link containing ID as a smart URL:  
Check this page how to capture the ID:

> **[Tracking Visitor Data by Smart URL](https://www.mautic.org/blog/developer/tracking-visitor-data-by-smart-url)**
>
> Have you ever wondered if you could track more than just visits via the Mautic tracking script?

You might have to set ID as globally updateable value in settings. Not sure.

Good luck

---

<div class="post-metadata">

**Author:** ![greg.harvey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/greg.harvey/32/2992_2.png) [@greg.harvey](https://forum.mautic.org/u/greg.harvey)\
**Post date:** [October 14, 2020, 1:43pm UTC](https://forum.mautic.org/t/bulk-creating-unique-links-for-mailouts/16542/6 "2020-10-14T13:43:56Z")

</div>

Thanks guys, we’ll do some testing!
