• Hi team, after a user share, i would like to redirect them to a page or URL. This is for multiple tracking purpose other than using GA. i added below code in “Additional JavaScript” box, using the Thank You and Ad Unit modal based on your documentation and redirect instruction here and it worked.

    a2a_config.thanks = {
        postShare: true,
        ad: '    <\script>\
                  let url = \"https://www.w3docs.com\";\
                  window.location.href = url;\
                <\/script>'
    };

    So my questions:

    1- If there’s any “official” method or better way to do this

    2- From your documentation, there’s statement below. With the code implementation above, is that mean, 50% of the user will got redirected and 50% will not?

    Like a coin toss, rotation uses Math.random() to give both ad units about a 50% chance of display.

    Thanks in advance.

  • The topic ‘Redirect to a page or URL after share’ is closed to new replies.