Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListFile Click Tracking - Not Tracking with "_UDL_Url"File Click Tracking - Not Tracking with "_UDL_Url"
Previous
 
Next
New Post
4/23/2012 12:28 PM
 

Hello..
I have file click tracking enabled on a F&L module I have created.

One item has a "Additional Information" entry added to it.  For this, I have the XSL to create a special HREF link to display "Additional Information" and have it linked to the file.  This works fine.

But, when someone clicks on this link, the file-clicks aren't being tracked even though within the F&L settings has it configured to track the clicks.

Any ideas?  Thanks.. -Jeff

XSLT Code:
<xsl:choose>
<xsl:when test="udt:Additional_x0020_Information=''">
<li>
<xsl:value-of select="udt:File_x0020_Link" disable-output-escaping="yes" />
</li>
</xsl:when>
<xsl:otherwise>
<li style="list-style-type: none; list-style-image: none;">
<ul>
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="udt:File_UDT_Url" disable-output-escaping="yes" />
</xsl:attribute>
<xsl:attribute name="target">
_blank
</xsl:attribute>
<xsl:value-of select="udt:Additional_x0020_Information" disable-output-escaping="yes" />
</a>
</li>
</ul>
</li>
</xsl:otherwise>
</xsl:choose>

FYI:
udt:File - Download Column

udt:File_x0020_Link - Calculated column
Expression: '<a href="' + File_UDT_Url + '" target="_blank">' + [Date of Newsletter_UDT_Value] + ' </a>'
This in essence creates a hyper-link to the file and makes the link name January 2012.

udt:Additional_x0020_Information - Normal Text Box


 
New Post
4/24/2012 2:24 AM
 

Hello Jeff,

 I am not able to reproduce. 

In addition to the tracking setting in FnL configuration, it is also needed that "Track Number Of Times This Link Is Clicked?" is enabled for each entry.

Thanks,Stefan

 
New Post
4/24/2012 8:20 AM
 

Hello Stefan,

I'm not sure why it's not working.  I was able to track down the file ID in the Files table as well as the UrlTracking table, and everything looks like tracking should be enabled; see below.

But for some reason, just this item isn't being tracked.  UGH.

Thanks for your help.. -Jeff

UrlTrackingID PortalID Url UrlType Clicks LastClick CreatedDate LogActivity
845 0 FileID=8611 F 0 NULL 2012-04-23 15:50:33.9700

TrackClicks ModuleId NewWindow 
1 3155

 
New Post
4/24/2012 9:21 AM
 

Hello..
Did some further testing and got something which is working.

Looking at the URLs being generated, found that the URL generated by the XSL sheet was entering @amp; instead of a & for the ampersands.

Non-Additional Info Link: (F&L Calculated Column Generated)
http://dnndev/LinkClick.aspx?fileticket=mIjY-hNRlZU%3d&tabid=1040&mid=3348

Additional Info Link: (XSL generated)
http://dnndev/LinkClick.aspx?fileticket=mIjY-hNRlZU%3d&amp;tabid=1040&amp;mid=3348

Why this was causing the file clicks not being tracked, I haven't a clue.  I wouldn't think it would, but it was.

Ended up creating a new Calculated Column named Additional Link (expression: '<a href="' + File_UDT_Url + '" target="_blank">Additional Information</a>').

I then ended up changing the Additional Information textbox item to a check box as well.

I then edited the XSL sheet to look at the Additional Information checkbox and if it's set to true, use the Additional Link calculated column; otherwise, use the original File Link calculated column.

This resolved my issues.  Below is the new XSL sheet.  Thank you for your time and attention.. -Jeff

XSL Style Sheet:
<xsl:template match="udt:Data" mode="list">
    <xsl:choose>
      <xsl:when test="udt:Additional_x0020_Information_UDT_Original = 'true'">
        <li style="list-style-type: none; list-style-image: none;">
          <ul>
            <li>
              <xsl:value-of select="udt:Additional_x0020_Link" disable-output-escaping="yes" />
            </li>
          </ul>
        </li>
      </xsl:when>
      <xsl:otherwise>
        <li>
          <xsl:value-of select="udt:File_x0020_Link" disable-output-escaping="yes" />
        </li>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListFile Click Tracking - Not Tracking with "_UDL_Url"File Click Tracking - Not Tracking with "_UDL_Url"


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out