Discussions

Using Query Strings and Anchor Tags to Track Click-throughs

Victoria Bull-Oracle
Victoria Bull-Oracle Posts: 9 Bronze Medal
edited Apr 29, 2022 6:21AM in Eloqua

A lot of clients use Eloqua to send newsletters to subscribers every month. Oftentimes those newsletters have links to articles on a landing page that the contact might be interested in. However if the links to those articles all point to the same page, how do you ensure that the landing page opens to the correct section of the page where the article they are interested in is located, and how do you track which article they were interested in? Anchor Tags and Query Strings can be used to do this.

Let’s say our newsletter this month has 3 different article summaries and the full versions are all hosted on our landing page: www.landingpage.com/content/MonthlyNewsletter

If the contact were to click through to Article 1, we want to make sure that the start of that Article is at the top of the page. Similar for Article 2 and Article 3 we want to make sure the user doesn’t have to scroll through the landing page to make sure they can find the article they’re interested in. We can use anchor tags to do this.

On the landing page we need to add the following HTML code just above the position of each article on the page:

<A name=”Article1”></A>

In this case I have tagged the section with the name “Article1” however you could use any identifier here to denote the section on the page. Similarly I would add in front of each respective article on my landing page:

<A name=”Article2”></A>

<A name=”Article3”></A>

Once we have tagged the section on the page we then have to update our links in our email as well. First we have to setup the query string parameter.

In Eloqua navigate to Automate > Web Profiling > Query Strings Tab. Create a new Query String Parameter that we will use to define which link the contact has clicked on. Below I have created the parameter “LinkID” however you can name it whatever you feel is best. I would recommend keeping the name short and it can’t include any spaces.

Query String Parameter.jpg

After creating the parameter we need to add this to the link in our email.

NOTE: This method can only be used when linking to a webpage that has Eloqua tracking scripts on it.

We can then add the new query string and anchor tags to our email links. In your email we need to add the following code to the end of each link in our email that navigates to our landing page:

?LinkID=Article1#Article1

?LinkID=Article2#Article2

?LinkID=Article3#Article3

If you are adding this code to an Eloqua hosted landing page your link might look something like this:

www.landingpage.com/content/MonthlyNewsletter?elq=<span>recipientid</span>&LinkID=Article1#Article1

After updating all of your links you’re ready to send your email and start tracking your click-throughs.

The Email Click-Through Link Breakdown Report will now have each link to the page listed separately and you can identify it by the LinkID query string value:

Email Click-through.jpg

You can also use the Visitor Count for Specific Query String report to get a high-level overview if you’re using this link across multiple emails:

Visitor Count.jpg

The Visitors by Query String Value will also give you a breakdown of all the visitors that have clicked a link with a specific Query String Parameter Value.

Now you’re ready to track the interest of your Newsletter Subscribers and determine which articles are catching their interest the most!

Post edited by OIT Integration User on
Tagged:

Comments

  • 2868694
    2868694 Marketing Manager - Creative Services BracknellPosts: 1

    Thanks a lot, Victoria. I've made the mistake of just using standard anchor links in Eloqua emails previously, which don't track properly. I'll used this technique for a few newsletters I've got coming up next month.

  • Thanks a lot, Victoria. I've made the mistake of just using standard anchor links in Eloqua emails previously, which don't track properly. I'll used this technique for a few newsletters I've got coming up next month.

    I'm glad you found the article useful Ben! Feel free to contact Eloqua Support if you have any issues.

  • 2867152
    2867152 Digital Marketing Executive Posts: 1

    Hi Victoria,

    Is there any kind of a delay in the results dropping into the 'Visitor Count for Specific Query String' report? as I've added the query string as per your instructions but the clicks I've made have not dropped in.

    Thanks

    Emma

  • 2869043
    2869043 Marketing Manager Posts: 1

    Thanks for this.

    How do I view the visitors who have clicked through a specific link (query stringed or not) within a landing page? I am trying to analyse conversion of a specific landing page and also follow up on visitors who have clicked certain links on the page.

  • Hi Victoria,

    Is there any kind of a delay in the results dropping into the 'Visitor Count for Specific Query String' report? as I've added the query string as per your instructions but the clicks I've made have not dropped in.

    Thanks

    Emma

    Hi Emma,

    My apologies that I missed your note above. Generally for visitor reporting there is a bit of a delay (minutes, not hours) as the information is processed. However let me know if you are still experiencing issues.

    Victoria

  • Thanks for this.

    How do I view the visitors who have clicked through a specific link (query stringed or not) within a landing page? I am trying to analyse conversion of a specific landing page and also follow up on visitors who have clicked certain links on the page.

    Hi Yomi,

    For query string pages you can look at the Visitors by Query String Value report to get a breakdown of the visitors. You can also look at the Distinct Visitors by Web Site Page report as well if the page isn't using query strings.

    Sorry for the delay in response!

    Victoria

  • I'm wondering if there is a way to do in-page anchors? My emails are quite long, and I'd like to be able to use a TOC which will have links to specific paragraphs further down in the email. I'm new to Eloqua though my company is not and I'm interested in finding out specific functionality that has not been used before.

  • Rob Sommers
    Rob Sommers Email Marketing Manager Posts: 15 Gold Trophy
    edited Dec 6, 2011 4:49PM

    I'm wondering if there is a way to do in-page anchors? My emails are quite long, and I'd like to be able to use a TOC which will have links to specific paragraphs further down in the email. I'm new to Eloqua though my company is not and I'm interested in finding out specific functionality that has not been used before.

    If you're building the HTML code yourself, it's quite easy. Just make the entries in your TOC links as so:

    <a href="#story1">Headline One</a>

    <a href="#story2">Headline Two</a>

    Then add an "anchor" at the location of the appropriate story in the newsletter. There are two different ways to do this. You can either add a named anchor right before the headline text:

    <p><a name="story1"></a>Headline One in the Body</p>

    Or you can add an id to an HTML tag:

    <p id="story2">Headline Two in the Body</p>

    I can't give instructions for using these with the WYSIWYG editor as we build all of our code outside of Eloqua and then use the Upload tool. But maybe this will give you and idea of where to look.

    As always, alas, support across email platform is inconsistent. The named-anchor method seems to have more support than the id method. Gmail, for example, doesn't support the id method.

    As far as I know, neither method hurts a layout in clients that don't support it, so go ahead and give it a try.

  • If you're building the HTML code yourself, it's quite easy. Just make the entries in your TOC links as so:

    <a href="#story1">Headline One</a>

    <a href="#story2">Headline Two</a>

    Then add an "anchor" at the location of the appropriate story in the newsletter. There are two different ways to do this. You can either add a named anchor right before the headline text:

    <p><a name="story1"></a>Headline One in the Body</p>

    Or you can add an id to an HTML tag:

    <p id="story2">Headline Two in the Body</p>

    I can't give instructions for using these with the WYSIWYG editor as we build all of our code outside of Eloqua and then use the Upload tool. But maybe this will give you and idea of where to look.

    As always, alas, support across email platform is inconsistent. The named-anchor method seems to have more support than the id method. Gmail, for example, doesn't support the id method.

    As far as I know, neither method hurts a layout in clients that don't support it, so go ahead and give it a try.

    Rob:

    Thank you very much, seems feasible so I'll get on it right away.

  • Thanks Rob that was great feedback! Brigitte if you do need guidelines as to inserting the text if you're using the WYSIWYG editor just let us know.

    Have a great day.

    Victoria

  • smenaka
    smenaka Posts: 1 Blue Ribbon

    Thank you Victoria Bull-Oracle for this wonderful piece of info. It worked like magic. Appreciate your time

    Thanks and Regards,

    Menaka

  • scott.kent
    scott.kent Posts: 25 Blue Ribbon

    Anyone know if this works for Landing Pages and tracking Outbound Clicks?
    I did not think so.

  • Jenn Clauss
    Jenn Clauss Phoenix, AZPosts: 10 Red Ribbon

    Has anyone had issues with articles with anchor tags disappearing when you click on links to anchor tags lower down the page?

    For example, if I have 7 articles with anchor tags on 1 Eloqua landing page and I click the link that goes to the 3rd article, the 1st and 2nd articles disappear from the landing page, and the landing page just starts with the 3rd article. If I refresh the landing page, all of the articles are there. I've tested it in multiple browsers and still have the same problem. Any advice on how to resolve this?

  • Thijs G.
    Thijs G. BelgiumPosts: 15 Red Ribbon

    nice one!

    Thanks for sharing.

  • chelseabyul
    chelseabyul Posts: 2 Green Ribbon

    Thanks a lot, Victoria. I've made the mistake of just using standard anchor links in Eloqua emails previously, which don't track properly. I'll used this technique for a few newsletters I've got coming up next month.

    Hi!

    Just wanted to ask if it's possible to track standard anchor links on launched Eloqua emails? Thank you!