User guide

Your first steps in PushPushGo

Custom fields and selector's updating

Some of the selectors we have created need to be updated so that the information on subscriber behavior is consistent with the current state, like:

  • last visited category (name)
  • recently visited links
  • date of the last visit (does not require a selector)

To do this, you need an automation scenario.

The custom fields you created and their updates will be used in the automation scenarios. More on this topic in the Automationchapter. 

1. Go to the AUTOMATION > NEW AUTOMATION tab.

2. The scenario starts with naming and choosing the appropriate Trigger event. It will always be the end of the session, with the exception of the welcome message, when you select Start session.

3. In the Scenario Wizard that appears, fill in the Name of the automation, eg. Data update

4. Specify the Renew flow time to 5 minutes.

5. Then click Next in the scenario tree. From the available behaviors, select Action> Update.

6. Click the Custom field> Add new button.

7. Here, specify the type of element to be downloaded from the page. It can be:  

  • text - when, for example, you want to refer to recent category names;
  • numerical value - to use, for example, when referring to the value of a cart;
  • date - when you want to update the date of the last visit;
  • Boolean (yes/no value) - when reference is made to an item clicked on the page.

Careful! The names of the additional fields should be different than the names of the selectors.

8. Save the custom fields.

9. After closing the Creator Wizard window, update the custom fields you created by clicking Update. Then enter the name of your variable in curly brackets, like {{last_category}}


Careful! In the case of the last link visited, you must add a special parameter to make the link fall back properly. Otherwise, the notification will be posted twice http or https, which in turn will redirect your recipient to the 404 error page.

Example:

  • http -> {{link | replace('http://','') }}
  • https -> {{link| replace('https://','') }}

10. For the Date of the last visit, it is enough to check the current data after clicking on Edit.

11. In contrast, for a Numeric Value, we must not only enter the name of its variable in brackets but also specify its Operator:

  • Variable - exactly as it was collected from the page
  • Fixed value - a constant value that always has to appear
  • Add (+) - the number entered will be added to the collected value
  • Subtract (-) - the number entered will be subtracted from the collected value

12. The last type concerns clicked items. All you have to do is check the checkbox here.

13. Finally, enable the scenario with the switch directly below the scenario name and click the Save botton in the upper right corner.

Test web push on your website

Get started for free

The trial version includes all features

European Funds banner