Announcement

Collapse
No announcement yet.

Weird ProductNameOnline value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Weird ProductNameOnline value

    Hi there,

    I've been investigating some GoogleAnalytics concerns and I'm focusing on the receipt page.

    When I order a download MP3 called 'Total Relaxation MP3' the line in layout "Google Analytics Item Details" that says:
    var act_productname = "<actinic:variable name="ProductNameOnline" />";

    comes out in my receipt page as:
    var act_productname = "Total Relaxation MP3<br /><a href="http://www.ursulajames.com/cgi-bin/dl005811.pl/mp3_tr.mp3?DAT=e0e9e48ee1e1e4e4e5e08ebca1e28ea5a3ffbca1e2d1e0e3e4e3e0e9e2e4e7e6d1e9e8e3b0e3e9b3e2b0b3e1
    e3e2e9b4b5e4b4e9b5e1e6b2e3e5b7b2e9e5e7e1e9">Click here to download.</a>";


    ProduceNameOnline seems to have picked up some HTML relating to the digital download file, and this is breaking the scripts as it has lots of special characters in it.

    The HTML seems to be the link to the download file. Why it's there, I don't know.

    According to the manual, ProductNameOnline is taken from the product general info page, so can anyone suggest what might be going on here?
    Last edited by Paddington Bear; 04-Sep-2009, 09:52 PM. Reason: Line too long - breaking forum page format
    Kind regards,
    Phil Benjamin

    Want to de-stress as you use SellerDeck software?
    http://www.ursulajamesstore.com

    #2
    Is this a bug

    Okay, I've investigated further and it seems that the same string is used later in the HTML on the page, to send the shopper to the download.

    Therefore, I surmise that somewhere in the Actinic code, the HTML has been added to the 'ProductNameOnline' value to make it easier to lay out the page, but noone spotted that it messes up the Google Analytics code.

    If I'm right then it's a bug. Maybe I'm wrong. Any ideas?

    Can anyone suggest a fix or a workaround?

    (For instance, what is correct code to say:
    var act_productname = left("ProductNameOnline", 20); which might solve the problem until the bug is fixed?)
    Last edited by Paddington Bear; 10-Sep-2009, 07:32 PM. Reason: Code error
    Kind regards,
    Phil Benjamin

    Want to de-stress as you use SellerDeck software?
    http://www.ursulajamesstore.com

    Comment

    Working...
    X