• OurPcGeek
  • Posts
  • Understanding Direct Call Rules Tags(Adobe Launch)

Understanding Direct Call Rules Tags(Adobe Launch)

Direct call rules in DTM are powerful tools for triggering events based on custom conditions in your application. They offer flexibility for measuring interactions in complex web environments like Single Page Applications (SPAs), or environments where URL changes might not be available. Below are several scenarios where direct call rules can be effectively used.

1. Hashchange/Single Page Applications (SPAs)

In Single Page Applications (SPAs), the URL doesn’t change when navigating between pages. However, you may need to measure different states or views. This can be done using the hashchange event, which can track changes in the hash part of the URL. In these cases, direct call rules help track page views or state changes even without a traditional page load.

2. Measuring in an Angular Environment

In Angular-based environments, where routing often doesn’t result in a full page reload, listeners can be used to detect changes in the application state. By using direct call rules, you can fire events based on specific triggers, such as when certain controllers or views are loaded.

3. Video Milestone Measurement Using Direct Call Rules

For video content, it’s essential to track user engagement. Direct call rules can be used to measure video milestones, such as when a user reaches 25%, 50%, 75%, or 100% of the video. This helps in understanding viewer behavior and optimizing content.

4. AJAX Calls

AJAX (Asynchronous JavaScript and XML) calls are often used in modern web applications to fetch data without reloading the page. Direct call rules can be triggered when an AJAX call completes, allowing you to measure interactions based on the success or failure of these calls.

5. Fire Direct Call Rule When an Object is Not NULL

Direct call rules can be configured to fire when a certain JavaScript object is available or has a specific value. This can be useful when tracking data that depends on dynamic content that is loaded or modified via JavaScript.

6. Firing Events Not Available as Pre-set Events

There may be events or interactions on your site that are not available as predefined event types in DTM. In such cases, direct call rules allow you to define custom events, such as user interactions with custom elements or specific actions in your app.

7. Firing Direct Call Rule from Event-Based Rule

Sometimes, you may want to trigger a direct call rule from another event-based rule. This allows you to create complex measurement systems where one event can cascade into multiple actions or triggers, providing more detailed tracking and reporting.

8. In Case of iFrame

When dealing with iFrames, it can be tricky to track events or interactions that occur within the embedded content. Direct call rules can be used in these scenarios to fire events from within the iFrame, ensuring that interactions are measured accurately.

Reference

For more detailed insights on using direct call rules in Adobe Launch, visit this guide from Digital Balance.

Reply

or to participate.