Lead Gen & CRM
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Downloading Media Center Assets and Redirecting to Pages

Article: 000050223
Updated: July 17, 2024

Add a link to your landing page to download a media asset and then redirect to a thank you page

Lead Gen & CRM allows you to add a Media Center asset on a landing page that gets downloaded when a user clicks on it. After the download, the page will automatically redirect to a thank you page. 

 
 
Users:
Administrators 
Company Managers 
Marketing Managers 
Sales Managers  
Salespersons  
Jr. Salespersons  

Light Bulb IconTip: Are you looking for information about Constant Contact’s Email and Digital Marketing product? This article is for Constant Contact’s Lead Gen & CRM product. Head on over to the Email and Digital Marketing articles by clicking here. Not sure what the difference is? Read this article.

 


Redirecting via Code

Important: This procedure applies to landing page buttons only and is not intended for forms.

You can configure pages to download media assets and then automatically redirect to the URL you specify. Within the landing page editor:

  1. Click  code.png  Edit Code in the left panel.
  2. Click the Body tab.
  3. Locate the <a></a> anchor tags to add the download click event to.
  4. Add an href attribute inside the opening <a> tag.
  5. Insert a Media Center asset trackable link as the value.
  6. Add a download attribute inside the opening <a> tag.  
  7. Add an on-click attribute inside the opening <a> tag.
  8. Add an attribute type to the opening <script> tag with a value of "text/javascript".
  9. Declare both a function between the script tags and a name with the syntax "function name() {   }".
  10. Add the line "window.location.href = 'your.thankyou.page.url/here';", where the URL is that of your Thank You page, between the opening and closing brackets.
Example of finished code:

Example code

Note: Constant Contact offers Professional Services to assist with custom coding
 


Did this article answer your question?


Constant Contact Logo

Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center