Wiki

REST containers_grab_variable object

For information about how REST API works, see rest main page.

Personyze can grab various data from a web page, including contents of Javascript variables.

You can see and manage data tracking here.

REST "containers_grab_variable" object allows you to see, create, update and delete items programmatically.

The URL is:

app.personyze.com/rest/containers_grab_variable

This object has the following columns:

  1. id
  2. name
  3. is_active - If 0, this container will not be used
  4. variable_path - Path to the Javascript variable, like dataLayer[0].isVIP
  5. mask - Optional regular expression that will be applied to the grabbed value, and it's first matching group will be selected
  6. constant_value - If specified, will use this value for the container, if the grabbed value is not empty, and not the grabbed value
  7. watch_variable - If 1, the Javascript variable on the page will be monitored for changes
  8. profile_column - If specified, will store the grabbed value to this field in the user profile

Insert example

curl --data '{"name": "Is VIP user", "variable_path": "dataLayer[0].isVIP"}' 'https://api:FD09908F25BECB09D78EBEA1DADFB618651F612D@app.personyze.com/rest/containers_grab_variable/'

Select example

curl 'https://api:FD09908F25BECB09D78EBEA1DADFB618651F612D@app.personyze.com/rest/containers_grab_variable/'

Update example

curl -X PUT --data '{"is_active": 0}' 'https://api:FD09908F25BECB09D78EBEA1DADFB618651F612D@app.personyze.com/rest/containers_grab_variable/where/id=23'

Delete example

Delete "niceguy-561531" forever. There is really no way back.

curl -X DELETE 'https://api:FD09908F25BECB09D78EBEA1DADFB618651F612D@app.personyze.com/rest/containers_grab_variable/where/id=23'
©2008-2023 All rights reserved. Personyze® is a registered trademark. Privacy Policy. Terms of Use.