Free Behavioral Targeting and Segmentation - BTBuckets

I have the BT Buckets wordpress plugin:

 

I want to use it to "hide" a widget based on whether a user has subscribed to the newsletter. to subscribe, they have to fill in a form with their name and email and click subscribe.

 

so, on the subscribe button, i put onclick="BTB.trackEvent(subscribed);" and made a bucket with the event name "subscribed"

 

 

is this it? is it really that simple? or have i really buggered it up?

Tags: event, tracking, wordpress

Views: 10

Reply to This

Replies to This Discussion

Almost there:-) it's simple you just need to do a little change...

The correct syntax to call the event is $BTB.trackEvent('subscribed')

Notice the $ symbol before the BTB and that function receives a string as argument, so it should be enclosed by single quote or double quotes 'subscribed' as the example above.

We recomend that on your case if possible the trackEvent function should be called on the page after the user submit his/her data because if you have any kind of form validation that checks if the user input is invalid you could add the user to the bucker before him/her actually submited the form. Also the onclick event could be ignored by the browser once the user is redirected to the new page and in this case it would not execute the trackEvent, if possible add it to the html code of the result page after the submit the form sucessfully :-)
how would i add this to the page they are redirected to?

what would the code be? i have no developer instinct! lol.

RSS

Follow us on Twitter

© 2012   Created by BTBuckets.

Badges  |  Report an Issue  |  Terms of Service