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

The Visitor Map does not show unique visitors at city level #12860

Closed
eramirezprotec opened this issue May 8, 2018 · 5 comments · Fixed by #12882
Closed

The Visitor Map does not show unique visitors at city level #12860

eramirezprotec opened this issue May 8, 2018 · 5 comments · Fixed by #12882
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@eramirezprotec
Copy link
Contributor

Is it the normal behavior of the Visitor Map to not show unique visitors when city level is activated?
I see this happening in the demo, but I'm not sure if it is intended or an error.

Thank you very much.

@eramirezprotec
Copy link
Contributor Author

eramirezprotec commented May 8, 2018

The problem is now solved. There was a line missing in plugins/UserCountryMap/javascripts/visitor-map.js:

f = {
    nb_visits: 0.002,
    nb_uniq_visitors: 0.002, // this is the line
    nb_actions: 0.002,
    avg_time_on_site: 0.02,
    nb_actions_per_visit: 0.02,
    bounce_rate: 0.02
},

@Findus23
Copy link
Member

Findus23 commented May 8, 2018

So you mean adding a nb_uniq_visitors: 0.002-line here:

f = {
nb_visits: 0.002,
nb_actions: 0.002,
avg_time_on_site: 0.02,
nb_actions_per_visit: 0.02,
bounce_rate: 0.02
},

@eramirezprotec
Copy link
Contributor Author

I'm sorry, I edited really bad that comment... the line is the one specifying the value for unique visitors metric.

@eramirezprotec
Copy link
Contributor Author

Exactly, @Findus23

@sgiehl sgiehl self-assigned this May 10, 2018
@sgiehl sgiehl added this to the 3.5.1 milestone May 10, 2018
@sgiehl sgiehl added the Bug For errors / faults / flaws / inconsistencies etc. label May 10, 2018
@eramirezprotec
Copy link
Contributor Author

Hi!

In its moment, unique visitors' points were not visible on the Visitor Map when it showed the cities.

After we corrected that error (the reason for this ticket to be created), we didn't check that everything was working perfectly. Now, one and a half years later, we noticed that the "big points" containing the largest numbers, were not visible on the map.

By making the following change to the file plugins\UserCountryMap\javascripts\visitor-map.js :

groups[g_id] = {
  nb_visits: 0,
  nb_uniq_visitors: 0, // this line
  nb_actions: 0,
  sum_visit_length: 0,
  bounce_count: 0
};

...the big points are finally being shown.

groups[g_id] = {
nb_visits: 0,
nb_actions: 0,
sum_visit_length: 0,
bounce_count: 0
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants