March 12, 2015 - Editor Tips, How to, Shortcodes, Tech-Admin

This has been implemented on InsideLaw. (login required)

Details

Uses a Google API key (on gsulaw.net account) to create goo.gl short links. It also displays a QR code generated by Google.

Creates a form to make a short link for a posted "url" value. If no URL is posted, no shortlink is created. This shortcode has no attributes - simply place the code on the desired page: [goo_gl]

Currently, there is no tracking or storage on our site, however, adding '/info' in the middle of a short link - i.e. goo.gl/info/{code} - shows click stats.

NOTE:

Only place this shortcode on password-protected pages - those with "Access restrictions" to limit use to the College of Law. Otherwise, usage may quickly exceed allowable limits when spammers find it!!

Related

This shortcode is implemented in Shortcodes UI and shares an API key  (on gsulaw.net account) with the automatic shortlinks created for every page on InsideLaw and available via the "Get Shortlink" button at the top of every edit screen.

Comments are closed.