Skip to main content

How to cloak a link to a PDF file on Google Drive

PDF files are not natively trackable. To collect engagement data, you can create a shortened URL that points to the PDF file. This enables tracking of user interactions, including clicks, views, and downloads.

With the help of our URL cloaking feature you can hide the original PDF address and present a shortened URL instead. This protects the source URL and maintains a consistent link appearance.

Quick video tutorial



Sharing a file on Google Drive

  1. Access Google Drive from your personal Google account or from your business Google Workspace account.

  2. Upload a PDF file or select a previously uploaded one.

  3. Click to display the additional options:

    Google Drive context menu with Share option highlighted for a PDF file

  4. Select Share->Share.

  5. In the Share dialog select Anyone with the link under General access, and the role Viewer:

  6. Copy link and close with Done.

    The link can now be shortened and cloaked with Short.io.

For more information on the different types of Google Drive file sharing options please visit the following help page.

  1. From the Short.io Dashboard, paste the copied Google Drive link of your PDF file in the Paste URL here field.

  2. Fill in the needed details in the Link was created dialog:

  3. Save & Close.

  4. Open the link for editing by clicking :

  5. In the Basic link editing tab replace the last part of the Original URL:

    view?usp=<option>

    with preview:

  6. Save.

  7. Navigate to Link cloaking and set Cloaking enabled:

  8. Save.

  9. Copy the cloaked link and paste it in your browser.

The PDF file will be displayed.