Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Инициализация скрипта с custom параметрами

Code Block
languagejs
....
window.SPH = {
    timeout: 8000, // 8 sec
    cookieName: 'smartId',
    cookieExpireYears: 1,
    identifier: 'SPH-XXXXXX', // enter your Smart Pixel identifiier here
    baseUrl: 'https://customer.smartsender.eu/pixel',
};
...

...

Получение идентификатора пользователя

Code Block
languagejs
return window.SPM.user.get(); // return '7777'

...