The Mapp DMP supports the capability to accept any valid JavaScript code to collect custom attributes from a website with the on-site pixel. Consider the request template and the parameter description as a basis.
Contents of the Table |
---|
When the on-site pixel is implemented on a website:
window.flx1.data('key', value, true)
Dynamic Elements | |
---|---|
key | This represents the key and can be specified by the customer. |
value | This represents the value that must be captured. The implementation can vary and needs to be specified in the custom code as well. |
true | This indicates that the key is a custom attribute. |
Please find below a specific example of a custom attribute that will be send to the DMP. This online gambling company wants to capture the amount of money that a logged-in user has left on his account. By collecting this value in real-time by means of the on-site pixel that is implemented on the website and store it in the DMP, The marketing division is able to create an audience of users that almost have an empty balance. An online marketing campaign on either one of the execution platforms can then be activated to encourage those users to do a cash deposit on their account and start gambling again.
Since the account balance is available from this website once a user is logged in, it is possible to collect and store this value as a custom attribute in the DMP feed.
var balance = window.flx1_jQuery('.total-amount').text(); if (balance.length > 0) {window.flx1.data('balance', balance, true);} |