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

[Dev Site] Add crazyegg tracking to script to Devsite home #1845

Closed
2 of 4 tasks
jpvajda opened this issue Nov 3, 2021 · 3 comments · Fixed by #1875
Closed
2 of 4 tasks

[Dev Site] Add crazyegg tracking to script to Devsite home #1845

jpvajda opened this issue Nov 3, 2021 · 3 comments · Fixed by #1875
Assignees
Labels

Comments

@jpvajda
Copy link
Contributor

jpvajda commented Nov 3, 2021

Relates to #1818

Jason Chen is asking to add CrazyEgg to analyze the click patterns as It will help us in seeing where customers are clicking and will give us a heatmap.

<script type="text/javascript" src="//script.crazyegg.com/pages/scripts/0045/9836.js" async="async" ></script>

Acceptance Criteria

  • Do a performance test after deploy to understand impact and provide data on impact.
  • Add script to this page https://developer.newrelic.com
  • When done, confirm with JasonChen -- @jpvajda
  • confirm if this is temporary or permanent with JasonChen -- @jpvajda
@jpvajda
Copy link
Contributor Author

jpvajda commented Nov 8, 2021

I have a PR for this change, but I don't think Gatsby like the use of the tienary operator as I'm seeing an error, though the site builds and the script seems to fire ok on each page I've set it on.

Screen Shot 2021-11-08 at 4 04 10 PM

@jpvajda jpvajda linked a pull request Nov 8, 2021 that will close this issue
@jpvajda
Copy link
Contributor Author

jpvajda commented Nov 8, 2021

Used an || statement instead, seemed to work... 🤷

@jpvajda
Copy link
Contributor Author

jpvajda commented Nov 8, 2021

This approach also seems to throw the same errors

Uncaught Error: CE: multiple userscripts installed
    <anonymous> http://script.crazyegg.com/pages/scripts/0045/9836.js:1
9836.js:1:70
    <anonymous> http://script.crazyegg.com/pages/scripts/0045/9836.js:1

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

Successfully merging a pull request may close this issue.

1 participant