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

Adds HubSpot analytics tracking code #678

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomgreever
Copy link
Contributor

No description provided.

@matthewp
Copy link
Contributor

What is this exactly?

@coveralls
Copy link

coveralls commented Jul 11, 2016

Coverage Status

Coverage remained the same at 96.262% when pulling d31f786 on hubspot-analytics into f7b9199 on master.

(function(d,s,i,r) {
if (d.getElementById(i)){return;}
var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
n.id=i;n.src='//js.hs-analytics.net/analytics/'+(Math.ceil(new Date()/r)*r)+'/2171535.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is trying to prevent the script from being cached, I wonder why that is?

@matthewp
Copy link
Contributor

I think we should hold off on hubspot until we can analyze the performance. Tracking scripts have a tendency to hurt performance and we want to prevent that since that's what we sell with DoneJS.

In particular I'd like to see:

  • How big is the script's payload.
  • How is it being cached.
  • How frequently is it phoning home.
  • If this can integrate with Google Analytics then we should remove the Google Analytics script.

@matthewp
Copy link
Contributor

I don't have any problem with this any more. Should we merge this? Still desirable?

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

Successfully merging this pull request may close these issues.

None yet

3 participants