PayPal Insights SDK - Js Load Event

DOCS

Last updated: Aug 15th, 7:18am

This event is used when the Insights SDK JavaScript code was first added to the page.

    1window.paypalInsight('event', 'js_load', JS_LOAD_PAYLOAD);

    JS_LOAD_PAYLOAD

    • type: object
    • required: true
    • payload:
      • timestamp:
        • type: number
        • required: true
        • example value: 1707423248000 => (Date.now())
        • description: A timestamp value of when the JavaScript code was evaluated on the page. Use the Date.now() javascript function for getting the current timestamp in milliseconds.

    Example

      1window.paypalInsight("event", "js_load", { timestamp: Date.now() });