RSSAmplifier

Max Böck | Notes · Apr 22, 2019

22 Apr 2019

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

💡Friendly reminder: if you include analytics or other tracking scripts on your site, please respect the “Do Not Track” client setting. You can check for it like this: function allowsTracking ( ) { const dnt = window . doNotTrack || navigator . doNotTrack || navigator . msDoNotTrack if ( dnt === 1 || dnt === '1' || dnt === 'yes' ) { return false } if ( 'msTrackingProtectionEnabled' in window .…

💡Friendly reminder: if you include analytics or other tracking scripts on your site, please respect the “Do Not Track” client setting. You can check for it like this:

function allowsTracking() {
    const dnt =
        window.doNotTrack ||
        navigator.doNotTrack ||
        navigator.msDoNotTrack
    if (dnt === 1 || dnt === '1' || dnt === 'yes') {
        return false
    }
    if ('msTrackingProtectionEnabled' in window.external) {
        return !window.external.msTrackingProtectionEnabled()
    }
    return true
}
if (allowsTracking()) {
  // Analytics Tracking Code Here 
}

Read on mxb.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.