# Leads tracking problem

**URL:** https://forum.mautic.org/t/leads-tracking-problem/2659
**Category:** General Discussion
**Created:** [October 30, 2015, 11:22am UTC](https://forum.mautic.org/t/leads-tracking-problem/2659 "2015-10-30T11:22:06Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 11:22am UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/1 "2015-10-30T11:22:06Z")

</div>

In previous post I stumble upon adding points problem.  
  
  
  
So, my already known leads (and also unknown) are visiting my ‘score pages’ and I see no points adding to them.  
  
  
  
You said that user needs to be logged in to track the email. So you mean, the user needs to be logged into Wordpress as a wp-user?

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 11:22am UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/2 "2015-10-30T11:22:06Z")

</div>

In previous post I stumble upon adding points problem.

So, my already known leads (and also unknown) are visiting my ‘score pages’ and I see no points adding to them.

You said that user needs to be logged in to track the email. So you mean, the user needs to be logged into Wordpress as a wp-user?

---

<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: [October 30, 2015, 1:55pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/3 "2015-10-30T13:55:15Z")

</div>

Not sure with whom were you talking. Take a look at [https://www.mautic.org/docs/pages/troubleshooting.html](https://www.mautic.org/docs/pages/troubleshooting.html) if it helps you solve it. A lead doesn’t have to be logged in to WP to gain some points.

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 2:14pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/4 "2015-10-30T14:14:12Z")

</div>

Ok, I read it.

“The tracking pixel isn’t part of the page you want to track. Mautic can track only pages which has the tracking pixel in their source code.”

I have a plugin installed. I assume this plugin tracks all of my pages, right?

It does add points if someone hits first page, but it doesn’t add them if someone hit another specific page that is important for me.

Do I need to add additional tracking code or is this plugin enough?

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 2:19pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/5 "2015-10-30T14:19:53Z")

</div>

Found it.

The gif on this page does have a status 304. So something is wrong. Now please, tell me how to find the right path to my Mautic instance?

Now I have this written under my Base URL in WP Mautic settings: [http://mysite.com/mautic](http://mysite.com/mautic)

---

<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: [October 30, 2015, 2:44pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/6 "2015-10-30T14:44:00Z")

</div>

That’s obviously a sample URL. Change it to the URL where your Mautic runs.

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 4:01pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/7 "2015-10-30T16:01:44Z")

</div>

🙂 I didnt want to reveal my website. So, the website there is mine not sample one.

---

<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: [October 30, 2015, 4:06pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/8 "2015-10-30T16:06:20Z")

</div>

Well, hard to help you then 🙂 But the base URL is the one you can see while browsing your Mautic before the /s/ part.

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 4:09pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/9 "2015-10-30T16:09:46Z")

</div>

So I wrote it ok. Where is a problem then? I don’t get it… Anyone?

---

<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: [October 30, 2015, 4:16pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/10 "2015-10-30T16:16:10Z")

</div>

I cannot tell you for sure unless I see the WP website.

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 4:20pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/11 "2015-10-30T16:20:15Z")

</div>

Oh, ok, no problem: [http://pro-tekst.com/](http://example.com)

---

<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: [October 30, 2015, 4:24pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/12 "2015-10-30T16:24:10Z")

</div>

I can see the tracking pixel loaded fine. Where is the 304 problem?

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 5:21pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/13 "2015-10-30T17:21:04Z")

</div>

Oh, sorry, this is the problematic page: [http://pro-tekst.com/cenik/](http://pro-tekst.com/cenik/)

---

<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: [October 30, 2015, 5:55pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/14 "2015-10-30T17:55:07Z")

</div>

Hmm, the mtracking.gif is loaded fine with 200 status. Could you check if there are some error messages in the Mautic log (app/logs/ folder) and in the server log?

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 6:32pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/15 "2015-10-30T18:32:35Z")

</div>

I see it differently… ![](http://i1275.photobucket.com/albums/y442/NVIgnis/Screenshot_1_zps30cxqbdt.jpg)

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 6:53pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/16 "2015-10-30T18:53:39Z")

</div>

There is no ‘folder’ in apps/logs…am I missing something?

![](http://i1275.photobucket.com/albums/y442/NVIgnis/Screenshot_2_zpsgyqlq2qy.jpg)

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 30, 2015, 6:55pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/17 "2015-10-30T18:55:21Z")

</div>

![](http://i1275.photobucket.com/albums/y442/NVIgnis/Screenshot_3_zpsuqkdut0p.jpg)

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [October 31, 2015, 9:04pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/18 "2015-10-31T21:04:30Z")

</div>

Anyone who can help me with this?

---

<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: [November 2, 2015, 9:52am UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/19 "2015-11-02T09:52:32Z")

</div>

That’s strange. I’ve made a few refreshes and it was always loaded just fine:

![](https://drive.google.com/uc?id=0B0VKZ9KdWYKnNU9fdTZDaU9PQkk)

Mautic creates a log file for each day and leaves there the last 7 days of logs. Go through those logs if there is some error message.

---

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)
#### Post date: [November 3, 2015, 7:41pm UTC](https://forum.mautic.org/t/leads-tracking-problem/2659/20 "2015-11-03T19:41:29Z")

</div>

Ok, this is what I found:

[2015-11-03 06:25:38] mautic.CRITICAL: Uncaught PHP Exception DoctrineDBALDBALException: “An exception occurred while executing ‘INSERT INTO mau\_campaign\_lead\_event\_log (date\_triggered, is\_scheduled, trigger\_date, system\_triggered, metadata, non\_action\_path\_taken, event\_id, lead\_id, campaign\_id, ip\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [“2015-11-03 06:25:38”, 0, null, 0, “a:0:{}”, 0, 8, 21785, 3, 454]: Duplicate entry ‘8-21785’ for key ‘PRIMARY’” at /home/potdomov/public\_html/protekst/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 {“exception”:"[object] (Doctrine\DBAL\DBALException(code: 0): An exception occurred while executing ‘INSERT INTO mau\_campaign\_lead\_event\_log (date\_triggered, is\_scheduled, trigger\_date, system\_triggered, metadata, non\_action\_path\_taken, event\_id, lead\_id, campaign\_id, ip\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [“2015-11-03 06:25:38”, 0, null, 0, “a:0:{}”, 0, 8, 21785, 3, 454]:nnDuplicate entry ‘8-21785’ for key ‘PRIMARY’ at /home/potdomov/public\_html/protekst/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:91, Doctrine\DBAL\Driver\Mysqli\MysqliException(code: 1062): Duplicate entry ‘8-21785’ for key ‘PRIMARY’ at /home/potdomov/public\_html/protekst/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php:166)"} []

[Next page](https://forum.mautic.org/t/leads-tracking-problem/2659.md?page=2)
