These are chat archives for canjs/canjs

6th
Feb 2017
Marc Godard
@MarcGodard
Feb 06 2017 00:13
Does anyone have any code to add google analytics to a CanJS site. Can't seem to be able to figure it out.
Marc Godard
@MarcGodard
Feb 06 2017 00:19
Thanks :) Checking it out
@gKreator this is what I tried once, but the code didn't seem to run. Should I make it a separate ES6 JS file and import it into my main viewModel?
Gira Minus
@gKreator
Feb 06 2017 00:34
Which part wasnt working?
Marc Godard
@MarcGodard
Feb 06 2017 00:34
I think i got it, thanks. It just wasn't tracking on analytics...
I need to test from the domain I am guessing and not from localhost
If it still doesn't work once I move it live, I will ask again.
Marc Godard
@MarcGodard
Feb 06 2017 00:51
Tested, it works... Thanks, not sure why my original code didn't work.
Gira Minus
@gKreator
Feb 06 2017 00:52
We may never know :)
Justin Meyer
@justinbmeyer
Feb 06 2017 16:40
@gKreator does this page address what you are looking for: http://canjs.com/doc/can-core.html
cc @chasenlehara
Matthew Phillips
@matthewp
Feb 06 2017 20:29