Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author micropat

    (@micropat)

    Well, hello! WhatsApp link tracking (shortening included) is now enabled.

    For reference, Here’s the doc on link shortening with AddToAny:
    https://www.addtoany.com/buttons/customize/wordpress/link_tracking

    Thread Starter aiweiwei

    (@aiweiwei)

    Thank you and

    Which JavaScript code I should add for whatsapp ? from the page you provided.

    Plugin Author micropat

    (@micropat)

    That depends what you want to use.

    If you want to use Bitly, for example, sign up on their site and implement the following code:

    a2a_config.track_links = 'bitly';
    a2a_config.track_links_key = 'YOUR_BITLY_USERNAME_HERE|YOUR_BITLY_API_KEY_HERE'; // username|API key delimited by |

    Links will be shortened for all services where link shortening/tracking makes sense, i.e. Facebook, Twitter, WhatsApp, LINE (soon), etc.

    Thread Starter aiweiwei

    (@aiweiwei)

    I do have a bitly account and now I got the api key so I place this excatly?

    a2a_config.track_links = 'bitly';
    a2a_config.track_links_key = 'YOUR_BITLY_USERNAME_HERE|YOUR_BITLY_API_KEY_HERE'; // username|API key delimited by |

    including the last | ?

    Ps does google have this too?

    THx

    Thread Starter aiweiwei

    (@aiweiwei)

    or the code should be :


    a2a_config.track_links = ‘bitly’;
    a2a_config.track_links_key = ‘YOUR_BITLY_USERNAME_HERE|YOUR_BITLY_API_KEY_HERE’;

    Thread Starter aiweiwei

    (@aiweiwei)

    Hi !!

    I just tried and it works!!

    I tried to send by whatsapp and now the url is https://j.mp/ xxxxxx

    j.mp = bitly i guess?

    Plugin Author micropat

    (@micropat)

    Either way is OK. //, and the text after that, is just a comment.

    Yes, Google’s URL shortener works too and does not require an API key. Just one line of code:
    a2a_config.track_links = 'googl';

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘shorten url is still not working’ is closed to new replies.