Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tracking of lead that have non trackable IP #7805

merged 2 commits into from Aug 22, 2019


Copy link

@Enc3phale Enc3phale commented Aug 20, 2019

Please be sure you are submitting this against the staging branch.

Bug fix? Y
New feature? N
Automated tests included? N
Related user documentation PR URL N
Related developer documentation PR URL N
Issues addressed (#s or URLs) #7765
BC breaks? N
Deprecations? N


Lead already identified by cookie pass through the List of IPs to not track contacts with configuration and are tracked.

Steps to reproduce the bug:

  1. Make a web page with tracking script

  2. Make a report on Pages: Page hits with this columns
    Screenshot_2019-08-20 Edit Report - Tracking Mautic

  3. Go to the web page on private navigation

  4. See that anonymous contact is registred in your instance with your IP and see that one line is added to the report

  5. Place your IP in List of IPs to not track contacts with in configuration of Mautic

  6. Refresh the web page with tracking script, a second line is added to the report

Steps to test this PR:

  1. Load up this PR
  2. Repeat step above
  3. When you refresh web page for the second time no line is added

@npracht npracht added bug ready-to-test labels Aug 20, 2019
@npracht npracht added this to the 2.15.3 milestone Aug 20, 2019
Copy link

@Woeler Woeler commented Aug 20, 2019

Please have a look at the following lines as these tests are no longer in line with the current code:

getIpAddress() is expected to be called once, with this code it is called twice. This is not problematic, I would suggest we just update the tests.

@Woeler Woeler added the pending-feedback label Aug 20, 2019
@Woeler Woeler removed the pending-feedback label Aug 20, 2019
Woeler approved these changes Aug 21, 2019
Copy link

@Woeler Woeler left a comment

Tested and working.

@Woeler Woeler added pending-test-confirmation and removed ready-to-test pending-test-confirmation labels Aug 21, 2019
@Woeler Woeler merged commit 753b21e into mautic:staging Aug 22, 2019
2 checks passed
Copy link

@florentpetitjean florentpetitjean left a comment

Tested and working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

4 participants