Skip to content
Home » javascript

javascript

Event deduplication for Facebook’s Conversions API using server-side GTM

  • by
  • 4 min read

Facebook is betting big on its Conversions API to counter Apple’s privacy game. It leaves one wondering why there documentation is so poor. In this blog post, I describe how you can set up proper event deduplication when using both the Facebook pixel and the Conversion API. 💥 This blog… 

Track ‘Dark Theme’ in Google Analytics 4 (GA4 and GTM)

  • by
  • 2 min read

In this blog post, we’ll use media queries particular user (device) properties using Google Tag Manager and Google Analytics 4. Some JavaScript knowledge is not a luxury. Using media queries, developers can personalize their app or website based on device and personal preferences by the user. Using the matchMedia method… 

Send Optimizely Experiment and Variation to GA4 via GTM

Optimizely is an amazing product for running experiments on your digital platforms. However, their documentation is somewhat outdated. In this blog post I would like to elaborate on how to send Optimizely’s experiment ID and variation ID to Google Analytics 4 in an event parameter. Judging from the screenshots, Optimizely’s… 

Explaining ‘promises’ in D3.js: the what and the why

  • by
  • 3 min read

A while ago I started working in the JavaScript library D3.js to create some interactive visualizations. I even took a rather great Coursera course on the subject — Information Visualization: Programming with D3.js. If you’re not familiar with modern JavaScript syntax, D3.js has a rather steep learning curve. During this…