Content Contributors
Dont’ miss out on our next blueprint launch!
By subscribing you agree to with our Privacy Policy.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Share this post


 

Overview 

Welcome to the comprehensive documentation for Event Tracking Plans with Devhaus! 🚀 Whether you're a seasoned developer, a meticulous product manager, or a curious tech enthusiast, this guide is designed to empower you with the knowledge and tools needed to master event tracking within the Devhaus Martech ecosystem.

 

What is an Event Tracking Plan?

An Event Tracking Plan is the backbone of understanding user interactions within your software applications. It serves as a strategic blueprint that outlines the events, actions, and behaviors you want to capture, measure, and analyze. With Devhaus, creating and implementing a robust Event Tracking Plan becomes not only a seamless process but a catalyst for informed decision-making.

Why Devhaus?

Devhaus takes event tracking to a new level, offering powerful solutions crafted by industry-leading experts. Our documentation is designed to be your compass, guiding you through the nuances of creating, managing, and optimizing your Event Tracking Plans effectively.


Understanding the Core Fundamentals

Event Naming Convention

When it comes to data collection, the best way to set your company up for success is to establish consistent naming conventions from day one. This will not only make it easier to read your code, but it will also mean that everyone at your company can easily understand what your events mean.

Read the best practice ➡️click here

 

Track

The Track API call is how you record any actions your users perform, along with any properties that describe the action.

Each action is known as an event. Each event has a name, like User Registered, and properties. For example, a User Registered event might have properties like plan or accountType. Calling Track in one of our sources is one of the first steps to getting started with Segment.

View code example

 

analytics.track('Home Page Viewed', 

{ metadata: { utm_campaign: null, utm_medium: null, utm_source: 'direct' }, path: '/' });

 

Read more with Segment Track API guide ➡️ click here

 

Identify

The Segment Identify call lets you tie a user to their actions and record traits about them. It includes a unique User ID and any optional traits you know about the user, like their email, name, and more.

View code example

 

{

  "type": "identify",

  "traits": {

    "name": "Peter Gibbons",

    "email": "peter@example.com",

    "plan": "premium",

    "logins": 5

  },

  "userId": "97980cfea0067"

}
 

Read more with Segment Identify API guide ➡️ click here

 

Devhaus Tracking Code for GA4

Devhaus Tracking Code is a helper code snippet that helps Webflow developers mainly to implement Segment events and send them to multiple destinations (e.g. Google Analytics, Facebook Pixel, etc.) without having to write any code. It also supports Google Analytics 4 if the client opts out to track events without Segment in place.

Prerequisites

You are expected to understand these topics beforehand:

  • Entry-level Javascript (Variable Definition and Basic Data Types i.e. String, Integer, Float, etc.)
  • Webflow
  • Different types of HTML Code Snippets and different types of scopes
  • Global-level/on all pages
  • Page-level
  • Component-level
  • Custom Attributes

 

Watch the tutorial video

 

Be sure to watch our tutorial walkthrough, good luck implementing!!

  1. A Step-by-Step Guide on Implementing Devhaus Tracking Code in Webflow  ➡️ click here
  2. A Comprehensive Tutorial on Management and Updates Event Tracking Plan  ➡️ click here
  3. How to do event tracking for Track Events ➡️ click here
  4. How to do event tracking for Identify  Events [Part 1] ➡️ click here
  5. How to do event tracking for Identify  Events [Part 2] ➡️ click here


 

Full documentation on Github

View our full documentation on Github with the link below.

Read the documentation and guide  ➡️ click here
 

Enable Google Analytics 4 (GA4)

To enable Google Analytics support (bypassing CDP), you need to add the ga4 attribute and put your measurement ID as the value:

 

<script 

id="devhaus-tracking-code"

  defer

src="https://cdn.jsdelivr.net/gh/BuildWithDevhaus/devhaus-tracking-code@latest/dist/index.js"

production-domain="example.com"

staging-domain="example.webflow.io"

ga4="G-XXXXXXXXXX"

  >

</script>
 

To enable GA4 DebugView, you need to add the ga4-debug-mode attribute and put true as the value: NOTE: This feature is unstable and may not work as expected.


 

<script 

    id="devhaus-tracking-code"

  defer

src="https://cdn.jsdelivr.net/gh/BuildWithDevhaus/devhaus-tracking-code@latest/dist/index.js"

production-domain="example.com"

staging-domain="example.webflow.io"

  ga4="G-XXXXXXXXXX"

     ga4-debug-mode="true"

  >

</script>




 

Dont’ miss out on our next blueprint launch!
By subscribing you agree to with our Privacy Policy.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Share this post
Here’s a quick guide

Make the most of our free resources

If you’re worries about projects with us being “expensive” you don’t have to be. Here’s an overview step by step process to help you align your evaluation processes.

CDP Specification RFP Template

Evaluating CDP vendors? Our free RFP template helps you define requirements, compare solutions, and choose the ideal CDP for your business.

How this guide will help you:

Ensuring your RFP asks the right questions and gets you the most relevant responses from the CDP Vendors
Help you uncover vendors who can deliver true customer understanding and drive business outcomes.
Accelerate your CDP selection process.

Webflow Read Time

Introducing our latest Webflow blueprint designed to enhance the reading experience on your website. Empower your readers with valuable insights into their time investment with each piece of content. With our meticulously crafted template, seamlessly integrate "Read Time" functionality into your CMS collection resources.

How this guide will help you:

Estimate reading times
Keep visitors informed and engaged
Enhance content strategy insights

Looker Studio Templates

Visualize key data for validating business plans with our templates for traffic tracking, SEO performance, and revenue events.

How this guide will help you:

Traffic and Engagement Tracking
SEO Performance Tracking
Segmented Branded and Non-branded queries

Convinced by now? Let’s dive deeper

When you're a startup, you're still finding your way. You're still figuring out what you are all about. Let us help you.

Schedule a free scoping call