document.addEventListener('DOMContentLoaded', () => {
/** init gtm after 3500 seconds - this could be adjusted */
setTimeout(initGTM, 3500);
});
document.addEventListener('scroll', initGTMOnEvent);
document.addEventListener('mousemove', initGTMOnEvent);
document.addEventListener('touchstart', initGTMOnEvent);
function initGTMOnEvent(event) {
initGTM();
event.currentTarget.removeEventListener(event.type, initGTMOnEvent); // remove the event listener that got triggered
}
function initGTM() {
if (window.gtmDidInit) {
return false;
}
window.gtmDidInit = true; // flag to ensure script does not get added to DOM more than once.
const script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.onload = () => {
dataLayer.push({ event: 'gtm.js', 'gtm.start': new Date().getTime(), 'gtm.uniqueEventId': 0 });
}; // this part ensures PageViews is always tracked
script.src = 'https://www.googletagmanager.com/gtm.js?id=UA-55393356-6';
document.head.appendChild(script);
}
More and more people embrace camping because it offers an entirely different experience. Recreational vehicles are associated with ultimate flexibility, freedom, and unlimited fun. Thus, owning a campervan opens new opportunities for traveling in your own style, by your own itinerary and schedule, while enjoying a high level of comfort. So, if you’ve been back …
Bow hunting is considered to be an extremely primitive method of hunting which has been implemented by human beings for ages. In fact, our ancestors have used this mode of hunting on a wide scale for many centuries and it is still followed by some primitive tribes living on the planet even today. You might …
What will you do if you run short of your food during a faraway outdoor activity? Do you have to start your journey back home or go starving for the remaining days? Well, you don’t have to worry. Use emergency fishing as a survival tactic and all will be fine. Emergency fishing will surely help …
Imagine a scenario when you need a survival tool, but you aren’t allowed to bring anything that wouldn’t fit in your pocket. You can’t carry a pocket knife as well because maybe you are in an airport or some other place with strict security. There’s one discreet thing that you can carry in your pocket, …