Guidelines for Testing Segments Based on Intent Data

Modified on Wed, 22 May at 11:38 PM

Conducting tests on segments that utilize data from Intent data providers, such as 6sense or Demandbase, can be complex. The complexity arises from the fact that it's not possible to recreate the segments and attributes these intent data sources provide within a test simulation.


Suggested Testing Approaches for Segments:


Utilizing a Custom IP Address:

Intent data providers pinpoint visitors through an IP Lookup process. This method is quite direct: advanced technologies detect the online user's IP address (the numerical identifier for a computer network) and correlate it to a company based on geographic location. Historically, these IP addresses have been associated with corporate office locations.


Should you possess the IP address of the account you wish to evaluate, this method is applicable. Input the IP address into the hly-ip-address URL parameter. Hushly will then utilize this specified IP address in place of the visitor's actual IP address.


To implement this, add hly-ip-address=<ipaddress> to the URL under examination.


Example: 

https://hub.yourcompany.com/home?hly-ip-address=1.1.1.1


Using URL Parameters:

Assume your segment definition is 6Sense.Segments contains ABM Financial Segment

You can alter your segment definition to include a condition based on the Page URL, in addition to the attributes from the intent data provider.


For instance, Page URL contains utm_segment=abm-financial, please ensure that the matching rule is set to ANY.


This method ensures that the visitor qualifies for the Segment, whether it's based on the Intent Provider Attributes or the Page URL. To test the Segment, simply add utm_segment=abm-financial to the URL you're evaluating.



Example:

An example URL to simulate the Segment would be: https://hub.yourcompany.com/home?utm_segment=abm-financial 



Employing Variables

While the URL Parameter method is preferred, if you find yourself unable to modify the URL parameters, you can resort to using variables. With this method, we will retrieve segment information from the browser's local storage.


Creating a Variable:

Initiate the creation of a variable that extracts data from the browser's local storage. Go to Setup > Variables, and click Add.


Variable Details

Name                       :  Mock Segment

Data Type                :  String

Source Type            :  Function

Javascript Function:

function getSegment() {
return localStorage.get('segmentName');
}


Once the variable is created, it will become accessible as an attribute within the segment builder. You can alter your segment definition to include a condition based on the Mock Segment variable, in addition to the attributes from the intent data provider.

To simulate a segment, execute the following command in the browser console:

localStorage.segmentName = 'financial-segment';


This approach enables you to emulate a segment for testing purposes.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article