Free Behavioral Targeting and Segmentation - BTBuckets

Hi guys,

I have an idea how to use BT Buckets, but no idea how to do this.

On the blog part of my website I display an additional box right above the main headline of an article with an extra link to my RSS feed to get more subscribers. As soon as a visitor is in the returning visitors bucket, the extra box will not be shown again. That works fine.

But since the box can be annoying, I'd like to add the following feature: A little close button that not only closes the box on the current page (which can be easily done with JavaScript), but also prevents the box from ever popping up again, based on a cookie setting. My thought was that the easiest solution would be to just sort that specific user manually into the returning visitors bucket, since this replaces the first visitor status. Is it posspible to do this with a few lines of JavaScrript?

Best regards,
Michael

Tags: cookie, javascript, manual, sorting

Views: 133

Reply to This

Replies to This Discussion

Hello Michael,

There is an easy way to accomplish what you need, you can use the javascript $BTB.trackEvent function from the BTBuckets tracking code to add an user to a bucket when he/she interacts with your site just like on your example with just one line of code :-)

It works pretty much like the trackPageview from GA, you can call it from a javascript function anytime you need, let me give you more information.

My suggestion is to create a specific bucket to do that once place an user on the Returning Visitor bucket on his/her first visit should give you wrong information about them. Create a bucket for those users who closes the box.

On the profile/behaviors configuration tool, click to add the "event" behavior, just give it a name like "closed_box" and save it. On your javascript function that closes the box add the following code: $BTB.trackEvent("closed_box");

This will call BTBuckets and as it matches the event you configured on the profile tool, the user will be added to the bucket you created. Then, you just need to apply the same solution you do for Returning visitor bucket to this new bucket and the user who closes the box will not see it anymore :-)

You can find more information about the $BTB.trackEvent and other useful functions from our API here

If you have more questions, please let me know
BTBuckets Team
Thanks a lot. I finally endet up with a slightly different solution, since there is no alternative content delivered for returning visitors.

I added a bucket "RSS-Box-Closer", just as you advised. Only users who close the additional RSS feed promotion box are sortet into this bucket. So a first time visitor who closes the box is still a "New Visitor" but now also a "RSS-Box-Closer".

To be able to hide the box from visitors who don't want to see it again, I created a target which provides the promotion box content and is only available to the "New Visitor" bucket. To show the box to new visitors who haven't yet closed the box on any of the pages, and to hide the box for all new visitors who already closed the box, I simply included a few lines of JavaScript, which shows the box only if the result of $BTB.isUserOnBucket("rssboxcloser") is false.

Since this little test seems to work pretty well, I think I'm going to make more use of th BTBuckets system. By the way, you can watch the RSS feed promotion box in the blog section of my personal website.

RSS

Follow us on Twitter

© 2013   Created by BTBuckets.

Badges  |  Report an Issue  |  Terms of Service