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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matomo Support #111

Closed
wants to merge 3 commits into from
Closed

Matomo Support #111

wants to merge 3 commits into from

Conversation

kenjibailly
Copy link
Contributor

@kenjibailly kenjibailly commented Mar 16, 2022

Proposed Changes

  • Added 2 docker env variables being:
    • MATOMO_URL
    • MATOMO_SITE_ID
  • Added code in head tag

Note: MATOMO_URL needs to be closed with a "/" like following example to work:

- MATOMO_URL=https://analytics.domain.com/

Checklist

  • Tested locally
  • Ran yarn ci to test my code
  • Did not add any unnecessary changes
  • All my changes appear after other changes in each file
  • Included a screenshot (if adding a new button)
  • 馃殌

<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
Copy link

@samip5 samip5 Mar 16, 2022

Choose a reason for hiding this comment

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

I think these should be configureable, as if I remember correctly, there's multiple one can add or not have and one shouldn't rely only on the JS code, unless client has to have js enabled too for the whole app to work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't exactly know what this image tracking was and it didn't allow it in the head tag.
I just read how it works and it's basically what you are mentioning here.
I'm going to make a new pull request, already tested and it works on edge with javascript disabled (not allowed)

@kenjibailly kenjibailly mentioned this pull request Mar 16, 2022
6 tasks
This pull request was closed.
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.

None yet

2 participants