• Resolved magk

    (@magk)


    Hi!

    Thank you for your great plugin. It is really cool!

    I just stumbled over a little problem. I have different “tel:”-Links on my page and I applied to setting to track them. The <a-href> contain international phone numbers with spaces that look like these:
    +43 555 123 4567
    +43 555 987 6543

    In the Link Log Analysis only one item with “+43” shows up. I guess it happens because of the spaces in the phone numbers. I changed the href-strings but maybe you want to take add a solution in the next version (maybe a stripped, cleaned up string).

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Peter Raschendorfer

    (@petersplugins)

    A tel link is a URI (Uniform Resource Identifier). URIs can not include spaces. You have to encode them – see https://en.wikipedia.org/wiki/Percent-encoding.

    In tel URIs they are not allowed at all. RFC 3966 “The tel URI for Telephone Numbers” says “tel URIs MUST NOT use spaces in visual separators to avoid excessive escaping”. See https://tools.ietf.org/html/rfc3966.

    Your tel links may or may not work – depending on how browsers and systems implement the specification. But it is not valid. You should strip all spaces from your tel links.

    Regards,
    Peter

    • This reply was modified 5 years, 4 months ago by Peter Raschendorfer. Reason: edit: link to rfc added
    Thread Starter magk

    (@magk)

    Thank you for your quick reply!

    I will follow your advise (and the obvious standard). Thank you for pointing that out to me.

    Kind regards
    markus

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tracking of tel: Links with spaces’ is closed to new replies.