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

Update analytics snippet to use baseurl #344

Merged
merged 1 commit into from
Dec 6, 2015

Conversation

praseodym
Copy link
Contributor

No description provided.

@barryclark
Copy link
Owner

Doesn't look like specifying the page and title are really needed any more at all: https://developers.google.com/analytics/devguides/collection/analyticsjs/

@praseodym
Copy link
Contributor Author

I think it was never mandatory, but apparently it can improve the analytics quality, as noted in 9f23e44.

@barryclark
Copy link
Owner

Ahh yes. Thanks for the reminder.

Looks like it doesn't need {{ site.baseurl }} though? It appears that you're just supposed to send the path, excluding the domain.

@praseodym
Copy link
Contributor Author

The Google Analytics interface links back to the path, which doesn't work correctly with the baseurl; you'll get a link to example.com/page.html instead of example.com/blog/page.html if blog is your baseurl.

@barryclark
Copy link
Owner

I see. That's right. Thanks Mark!

barryclark added a commit that referenced this pull request Dec 6, 2015
Update analytics snippet to use baseurl
@barryclark barryclark merged commit da5c21a into barryclark:master Dec 6, 2015
@praseodym
Copy link
Contributor Author

Cheers!

@praseodym praseodym deleted the patch-1 branch December 6, 2015 20:16
@barryclark
Copy link
Owner

🍻

ymougenel referenced this pull request in ymougenel/ymougenel.github.io Apr 7, 2020
Update analytics snippet to use baseurl
pzelmanski added a commit to pzelmanski/pzelmanski.github.io that referenced this pull request May 7, 2020
Update analytics snippet to use baseurl
pzhokhov pushed a commit to pzhokhov/pzhokhov.github.io that referenced this pull request Jan 28, 2021
Update analytics snippet to use baseurl
rosnikv pushed a commit to rosnikv/rosnikv.github.io that referenced this pull request Jul 30, 2022
…ate the document (barryclark#344)

Co-authored-by: Neeraj Gangwar <neeraj.gangwar@myntra.com>
peppy pushed a commit to peppy/peppy.github.io that referenced this pull request Dec 6, 2023
Update analytics snippet to use baseurl
vbmacher pushed a commit to vbmacher/vbmacher.github.io that referenced this pull request May 26, 2024
…ark#344)

Since version 3.0, Ruby has no `webrick` that Jekyll (<= 4.2) needs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants