PayPal Insights SDK - Commands

DOCS

Last updated: Aug 15th, 6:03am

The Insights tag consists of a single function paypalInsight() with the following syntax:

    1window.paypalInsight(COMMAND, COMMAND_PARAMETERS, COMMAND_OPTIONS);

    COMMAND

    • Is one of the following commands:
      • config - specify the configurations to initialize data ingestion on the page
      • set - set event attributes that will be associated with every subsequent event on the page
      • event - send event data

    COMMAND_PARAMETERS

    • Can vary according to the command; refer to each of the command's reference ( config , set , event ).

    COMMAND_OPTIONS

    • Can also vary according to the command; refer to each of the command's reference ( config , set , event ).

    You can invoke paypalInsight() commands anywhere on your page, as long as they are executed after the Insights tag base snippet has executed.