# Tracking code does not create leads

**URL:** https://forum.mautic.org/t/tracking-code-does-not-create-leads/3403
**Category:** Product Support
**Created:** [February 6, 2016, 10:50am UTC](https://forum.mautic.org/t/tracking-code-does-not-create-leads/3403 "2016-02-06T10:50:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![xpaz](https://avatars.discourse-cdn.com/v4/letter/x/ee7513/32.png) [@xpaz](https://forum.mautic.org/u/xpaz)
#### Post date: [February 6, 2016, 10:50am UTC](https://forum.mautic.org/t/tracking-code-does-not-create-leads/3403/1 "2016-02-06T10:50:56Z")

</div>

Hi! I am new to Mautic, so it is possibly a silly question, but I cannot get it to create a lead from the tracking code.  
  
  
  
I understand from the docs that a URL such as this:  
  
  
  
[http://www.logorapid.com/m/mtracking.gif?email=test@logorapid.com](http://www.logorapid.com/m/mtracking.gif?email=test@logorapid.com)  
  
  
  
should create a new lead with the email. But it does not happen, it only creates an anonymous lead.  
  
  
  
This is an example I think should work, the real code I have put in the website is like this:  
  
  
  
[http://www.logorapid.com/m/mtracking.gif?d=YTozOntzOjg6InBhZ2VfdXJsIjtzOjQ5OiJodHRwOi8vd3d3LmxvZ29yYXBpZC5jb20vZGVzY2FyZ2FfZWJvb2tfbG9nb3JhcGlkIjtzOjEwOiJwYWdlX3RpdGxlIjtzOjM3OiJOdWVzdHJvIGxpYnJvIGRlIGxvZ290aXBvczogTG9nb1JhcGlkIjtzOjU6ImVtYWlsIjtzOjE4OiJ0ZXN0QGxvZ29yYXBpZC5jb20iO30%3D](http://www.logorapid.com/m/mtracking.gif?d=YTozOntzOjg6InBhZ2VfdXJsIjtzOjQ5OiJodHRwOi8vd3d3LmxvZ29yYXBpZC5jb20vZGVzY2FyZ2FfZWJvb2tfbG9nb3JhcGlkIjtzOjEwOiJwYWdlX3RpdGxlIjtzOjM3OiJOdWVzdHJvIGxpYnJvIGRlIGxvZ290aXBvczogTG9nb1JhcGlkIjtzOjU6ImVtYWlsIjtzOjE4OiJ0ZXN0QGxvZ29yYXBpZC5jb20iO30%3D)  
  
  
  
The data in parameter “d” is this:  
  
  
  
urlencode(base64\_encode(serialize(array (  
  
‘page\_url’ =\> ‘[http://www.logorapid.com/descarga\_ebook\_logorapid](http://www.logorapid.com/descarga_ebook_logorapid)’,  
  
‘page\_title’ =\> ‘Nuestro libro de logotipos: LogoRapid’,  
  
‘email’ =\> ‘test@logorapid.com’  
  
))));  
  
  
  
What am I doing wrong?

---

<div class="post-metadata">

### Author: ![xpaz](https://avatars.discourse-cdn.com/v4/letter/x/ee7513/32.png) [@xpaz](https://forum.mautic.org/u/xpaz)
#### Post date: [February 6, 2016, 10:50am UTC](https://forum.mautic.org/t/tracking-code-does-not-create-leads/3403/2 "2016-02-06T10:50:56Z")

</div>

Hi! I am new to Mautic, so it is possibly a silly question, but I cannot get it to create a lead from the tracking code.

I understand from the docs that a URL such as this:

[http://www.logorapid.com/m/mtracking.gif?email=test@logorapid.com](http://www.logorapid.com/m/mtracking.gif?email=test@logorapid.com)

should create a new lead with the email. But it does not happen, it only creates an anonymous lead.

This is an example I think should work, the real code I have put in the website is like this:

[http://www.logorapid.com/m/mtracking.gif?d=YTozOntzOjg6InBhZ2VfdXJsIjtzOjQ5OiJodHRwOi8vd3d3LmxvZ29yYXBpZC5jb20vZGVzY2FyZ2FfZWJvb2tfbG9nb3JhcGlkIjtzOjEwOiJwYWdlX3RpdGxlIjtzOjM3OiJOdWVzdHJvIGxpYnJvIGRlIGxvZ290aXBvczogTG9nb1JhcGlkIjtzOjU6ImVtYWlsIjtzOjE4OiJ0ZXN0QGxvZ29yYXBpZC5jb20iO30%3D](http://www.logorapid.com/m/mtracking.gif?d=YTozOntzOjg6InBhZ2VfdXJsIjtzOjQ5OiJodHRwOi8vd3d3LmxvZ29yYXBpZC5jb20vZGVzY2FyZ2FfZWJvb2tfbG9nb3JhcGlkIjtzOjEwOiJwYWdlX3RpdGxlIjtzOjM3OiJOdWVzdHJvIGxpYnJvIGRlIGxvZ290aXBvczogTG9nb1JhcGlkIjtzOjU6ImVtYWlsIjtzOjE4OiJ0ZXN0QGxvZ29yYXBpZC5jb20iO30%3D)

The data in parameter “d” is this:

urlencode(base64\_encode(serialize(array (  
‘page\_url’ =\> ‘[http://www.logorapid.com/descarga\_ebook\_logorapid](http://www.logorapid.com/descarga_ebook_logorapid)’,  
‘page\_title’ =\> ‘Nuestro libro de logotipos: LogoRapid’,  
‘email’ =\> ‘test@logorapid.com’  
))));

What am I doing wrong?

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [February 8, 2016, 12:23pm UTC](https://forum.mautic.org/t/tracking-code-does-not-create-leads/3403/3 "2016-02-08T12:23:12Z")

</div>

Is the email field publicly editable?

---

<div class="post-metadata">

### Author: ![xpaz](https://avatars.discourse-cdn.com/v4/letter/x/ee7513/32.png) [@xpaz](https://forum.mautic.org/u/xpaz)
#### Post date: [February 8, 2016, 1:19pm UTC](https://forum.mautic.org/t/tracking-code-does-not-create-leads/3403/4 "2016-02-08T13:19:30Z")

</div>

Not in the same page, I collect it from a form in the previous page. I only send the email as a parameter to the tracking pixel.

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [February 8, 2016, 2:27pm UTC](https://forum.mautic.org/t/tracking-code-does-not-create-leads/3403/5 "2016-02-08T14:27:19Z")

</div>

I mean in Mautic. If you check the docs you are referring to, there is a note that if you want to send information to a lead fields from tracking pixel URL, you have to mark those lead fields as publicly editable.

---

<div class="post-metadata">

### Author: ![xpaz](https://avatars.discourse-cdn.com/v4/letter/x/ee7513/32.png) [@xpaz](https://forum.mautic.org/u/xpaz)
#### Post date: [February 8, 2016, 4:10pm UTC](https://forum.mautic.org/t/tracking-code-does-not-create-leads/3403/6 "2016-02-08T16:10:37Z")

</div>

Thaks, that was it! I knew it had to be something easy, it has worked immediately.
