Setting a URL to share a campaign

    Setting a URL to share a campaign


    Article summary

    Designate the URL to be used for the share button. The shareUrl parameter with string value to be used when initializing through the cloud.shoplive.init().

    Passing shareURL to init() as a parameter

    cloud.shoplive.init({
          accessKey: "ACCESS_KEY",
          messageCallback: messageCallback,
          shareUrl: "YOUR_LIVE_PAGE_URL",
        }); 
    • When you set EXAMPLE.com as shareUrl, the actual URL to be shared would be EXAMPLE.com/ck={CAMPAIGN_KEY}.

    • You can use parse ck parameter on shared page to directly play a designated campaign using the cloud.shoplive.setPlayer() or cloud.shoplive.showFeaturedPlayerModal().