Profile cover photo
Profile photo
Florence Auréart
528 followers -
Surfing: mer, neige, web
Surfing: mer, neige, web

528 followers
About
Florence's posts

bonjour,

Je souhaiterais savoir quel est à votre avis le moyen le plus propre pour détecter si une classe est présente sur une page aprèsle chargement du DOM. Pas si l' élément est cliqué mais juste si un élément a une classe ou un attribut spécifique.
ex :
<div class="regie-pub ></div>

Merci et bonne journée.


Post has shared content
For all those who may have missed it, +John Mueller does a great job summing up the key points of dealing with a site trying to run AngularJS. Just remember the devil is in the details. Just because it can work like a normal site, does not mean it will for you. Angular presents a whole new set of particular problems you need to deal with. And many of those are not easy to pick apart.

And if you're thinking of moving your site to Angular, just keep in mind, that you need to have expert level staff to get it out right.

Post has shared content
If your marketing team isn't yet familiar with Progressive Web Apps, it's time you changed that.

Post has shared content

Post has shared content
Hi All,

I thought it might be useful to share a list of advanced GTM js optimisation tips. If I missed any please add them in comments:

1. For JS libraries set the Tag to load "once per page"

2. When using Custom JS variables which reference other {{variables}} - declare these once and reference the declaration.

For example:

function(){
var pagePath = {{Page Path}};
if(pagePath==="/") {
return "aaa";
} else if(pagePath==="/search") {
return "bbb";
}
}

Rather than:

function(){
if({{Page Path}}==="/") {
return "aaa";
} else if({{Page Path}}==="/search") {
return "bbb";
}
}

3. Again within Custom JS variables: to prevent these being re-evaluationed only trigger on {{Event}}=gtm.js|gtm.dom|gtm.load

For example:

function(){
var pagePath = {{Page Path}};
var event = {{Event}};
if(pagePath==="/" && event=gtm.js || pagePath==="/" && event=gtm.dom || pagePath==="/" && event=gtm.load) {
return "aaa";
} else if(pagePath==="/search" && event=gtm.js || pagePath==="/search" && event=gtm.dom || pagePath==="/search" && event=gtm.load) {
return "bbb";
}
}

4. When using hitCallback customDimension/customMetrics flushing on pageviews and events dont use dataLayer.push.event as this will cause the dataLayer to be re-evaluated. Just use dataLayer.push.eventCategory etc only.

5. For client-side to server-side IP lookup`s - store the output of these in a cookie or LocalStorage, so that they are not re-lookedup on every page.
http://www.simoahava.com/analytics/send-weather-data-to-google-analytics-in-gtm-v2/#33
http://api.demandbase.com/api/v2/ip.json?key=3cb654938e66f6e87d2dc349a7872b1dcb19f551&callback=dataLayer.push

6. Untick the default variables that you will never use:
Click Target
Form Target
Old History State
Old History Fragment
Random Number

7. Disable or delete custom variables that are not actively used (GTM wont let you delete anything that`s already in use).

8. If you are pausing tags via a Global blocking trigger, change the Tag to have no active triggers and no blocking triggers, it will then not be included when gtm.js is compiled (Or just delete the tag).

9. Controversial tip: For onclick "GA events tags" the compiled container size can be reduced by inheriting the GA pageview settings. This requires a generic trackerName such as universalTracker & is not recommended for newbies.

Note: This method cannot be used for onload events, unless they load after the pageview.

10. Using Tag prioritisation & load order: to ensure primary tags fire first & remarketing or mouseTracking tags fire second or at Window Loaded.

Site note / feature request: It would be good to be able to record the speed of tags, before vs after these 10 changes to see the effect.

Thanks

Phil.

Post has shared content
+Vincent Lahaye De l'or pour tes futurs stagiaires :)
Introducing the Google Analytics Demo Account
#measure #analytics

"It can be difficult to gain practical experience with analytics since not everyone has access to a fully-implemented analytics account. To fix this we’re introducing a fully functional Google Analytics Demo Account, available to everyone."

Post has attachment

Post has shared content

Post has shared content
New Post - 301 Redirects Rules Change: What You Need to Know for SEO

Is it time to rewrite the SEO playbooks?

For what seems like forever, SEOs have operated by a set of best practices that dictate how to best handle redirection of URLs. 

Times have changed.

https://moz.com/blog/301-redirection-rules-for-seo

Post has shared content
Wait while more posts are being loaded