Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Filter IR visits #109

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

Filter IR visits #109

wants to merge 1 commit into from

Conversation

sandcha
Copy link

@sandcha sandcha commented Oct 1, 2020

No description provided.

Comment on lines +11 to +17
var pagePath = window.location.pathname;
var isConnectionPage = pagePath.includes("connection");
_paq.push(['setDocumentTitle', isConnectionPage ? pagePath.substring(0, pagePath.lastIndexOf('/')) : pagePath]);
if (!isConnectionPage){
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
};
Copy link
Author

@sandcha sandcha Oct 1, 2020

Choose a reason for hiding this comment

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

@LoicPoullain @magemax A priori, pour les visites à /connection/..., nous ne voulons pas mémoriser l'URL en entier. À la recherche de comment ne garder que /connection, j'ai ajouté la modification incomplète ci-dessus.
À ce stade, elle ignore complètement les visites à /connection et ne comptabilise par la redirection automatique vers /ir (voire ne comptabilise plus rien si on ne relance pas la page ?). N'hésitez pas à modifier ce code si vous trouvez la solution !

@LoicPoullain
Copy link

@sandcha cette PR est en draft. Qu'en est-il ?

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

Successfully merging this pull request may close these issues.

2 participants