TriggerNote v1.3 Adds Scrolling and Split Testing Controls
by Antone Roundy | TriggerNote
- A new Scroll Action, which can check or set the scroll position of an element.
- The Stripe (floating bar) Recipe was updated to use the Scroll Action to ensure that the page remains scrolled to the same position after the floating bar is added if the visitor scrolled down before the page was completely loaded.
- It is now possible to manually select a specific split test rather than using Selectors to load it. Split test setup remains essentially the same, except that you do not need to specify any Selector criteria if you are going to load it manually.
- In a PHP page, instead of (or in addition to) TriggerNoteUseTriggerSet or TriggerNoteAutoSelect, use the function TriggerNoteUseSplitTest to specify the split test number -- for example, "TriggerNoteUseSplitTest(3);".
- In WordPress, the control panel will enable you to select a Split Test.
- It's now possible to run multiple split tests properly on the same page.
- A bug was fixed in TriggerNoteAutoSelect and TriggerNoteLoadTriggerSets to enable them to work if you added an optional prefix to the names of your database tables.
- An additional error check was added to the Set Attribute Action.
- A favicon was added to the TriggerNote control panel.
How to Upgrade
To upgrade from version 1.2.1, upload the following, overwriting the old files.
If you have any Trigger Sets that used the Stripe (floating bar) Recipe, and you wish to take advantage of the new Scroll Action, you can either rebuild them using the updated recipe, or make the following changes manually.
- Collapse all of the existing Actions by clicking their icons that look similar to a V (not required, but it makes the following steps easier).
- Add two "Get/Set Scroll Position" Actions inside the OnLoad Trigger.
- Move one of them all the way to the top of the list by clicking its up arrow repeatedly.
- In that one, select the settings "Get" and "Variable", and set "Value or Variable Name" to "TriggerNoteStripeScroll". Leave "Element ID" blank.
- Move the other "Get/Set Scroll Position" Action up five times, so that it's under one "Set HTML Element Style" Action, and above two of them.
- In its settings, select "Set" and "Variable". Set "Element ID" to "TriggerNoteStripeOrig", and set "Value or Variable Name" to "TriggerNoteStripeScroll".
- Scroll to the top of the page and click "Save Trigger Set".
Yep. That's why we have Recipes. So that you don't have to do things like that all the time!
We'd Love to See How You're Using It
Feel free to post links to pages where you're using TriggerNote in the comments.