wellcometrust / together-science-can

Site for the Together Science Can campaign.
MIT License
1 stars 1 forks source link

Google analytics set up #5

Open jakubfiala opened 7 years ago

jakubfiala commented 7 years ago
alfraser86 commented 7 years ago

@ria-j we need GA set up for this.

alfraser86 commented 7 years ago

@brightspaceux Need a decision on what kind of tracking we want (Do we need hotjar?)

alfraser86 commented 7 years ago

@ria-j @brightspaceux Are there any custom events we would like to track?

ghost commented 7 years ago

Is it FB pixel or hotjar?

alfraser86 commented 7 years ago

@jakubfiala break this down into a ticket for each type.

ria-j commented 7 years ago

@alfraser86 if you give me a URL then I can set up an account and get the tracking ID, which you'll then need to put into the site.

@brightspaceux I saw a bunch of events in your demo that I think it would be useful to track - video play, calls to action, outbound links, that card that flips over, and scroll depth as Al mentioned. Maybe it's best if we go through the prototype (when you have an [almost] final version) and decide what to track?

I can see that the FB pixel would be valuable if you expect this to go viral on social media. Hotjar could also be useful for heatmaps / scroll depth.

alfraser86 commented 7 years ago

@wellingk @juliamgodinho can we put the url on this ticket once we know to unblock @ria-j .

@ria-j please can you chase.

juliamgodinho commented 7 years ago

www.togethersciencecan.org/

ria-j commented 7 years ago

Here you go. Can you set up the property views in the same way as the other Wellcome properties? They separate internal traffic from external; David Miller had initially set it up that way.

Does this ticket include event tracking or is that to be done at another point?

Tracking ID:

UA-105183365-1

Code:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-105183365-1', 'auto');
  ga('send', 'pageview');

</script>

PHP Implementation (optional)

<?php include_once("analyticstracking.php") ?>

image

jakubfiala commented 7 years ago

Hey @ria-j, only just got round to this. I think this ticket does include basic events tracking, do you already know what you want to track?

ria-j commented 7 years ago

What counts as 'basic event tracking'?

I haven't seen the site since early draft so it would be good to go through it with one of you, perhaps @brightspaceux, to decide what to track