Personalizing content by context in real time is something many digital marketers seek. Lytics is making these kinds of tactics more accessible.
Recently our growth team kicked off a campaign promoting our new integration with Google Ads.
As part of this effort, we created an overview detailing some potential use cases of our new integration. In the creation of this asset, we also wanted to run an experiment by adding our own flavor of personalization to our content using Lytics!
The idea for this experiment was simple: we built two blocks of content on the page (an introduction and a call to action) to change based on the viewer’s membership to two predefined segments. For each of the two sections we also had two pieces of text, one which was targeted towards all of our existing users, as well as a default option for viewers who are not currently Lytics users.
Personalizing content using Lytics is super easy, and we’re going to use this simple example to show you how its done! Note: This is a basic use case of our Element Toggle Personalization.
Make sure that the segment you want to use has API Access enabled, you’ll be using the ID of the segment in your HTML. In the case of our overview we used one segment, which includes all of our existing Lytics users, and has the ID
Now, in the HTML, you’ll create multiple containing elements: one for each segment, and an optional element to default to. Each container will have two attributes.
data-liogroupA unique string name for the set of elements.
data-liotriggerThe ID of the segment or
default. (Which will show if no other element in the data-liogroup is selected to show).
It’s that easy! Here’s the code from our overview introduction as an example:
<div data-liogroup="googleadwords-overview-intro" data-liotrigger="users"> <h1>Add a Predictive Edge to Your Google Ads</h1> <p>Now you can add powerful, behavior-based retargeting to your marketing stack...</p> </div> <div data-liogroup="googleadwords-overview-intro" data-liotrigger="default"> <h1>Create Predictive Retargeting Campaigns with Google Ads + Lytics</h1> <p>The Lytics customer data platform now integrates natively with Google Ads...</p> </div>
We’re planning on including a lot more personalized content on our website in the future, so we’ll be sure to keep you updated on all of our future experiments.
Element toggle personalization has numerous applications. Feel free to try it out on your website and let us know what you think!