Implenting doubleclick tag on thank you page of donation form

Options
I've setup a DoubleClick Floodlight tag within the thank you section of our donation form in order to track conversions.  The form is being hosted within a PageBuilder page using CRDonationAPI (https://secure2.convio.net/cwf/site/SPageNavigator/donate_gp.html).  The tag appears properly when the thank you page is viewed but only rarely pulls in the variables that are requested.  The details needed are revenue (donation amount), monthly/onetime, and order id.  For those I'm using:

[[S120:dc:giftAmount]]

[[S120:dc:recurringFrequencyLabel]]

[[S120:dc:trackingCode]]


Here is the actual code I have on the thank you section of the page:

<!--

Start of DoubleClick Floodlight Tag: Please do not remove

Activity name of this tag: Monthly Donation

This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.

Creation Date: 05/15/2018

-->

<iframe src="https://8610614.fls.doubleclick.net/activityi;src=8610614;[[? x[[S120:dc:recurringFrequencyLabel]]x::xMonthly (ongoing)x::type=mon;cat=month0;::type=otg;cat=oneti0;]]qty=1;cost=[[S120:dc:giftAmount]];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=[[S120:dc:trackingCode]]?" width="1" height="1" frameborder="0" style="display:none"></iframe>

<!-- End of DoubleClick Floodlight Tag: Please do not remove -->


Has anyone successfully set something like this up?  Please let me know if you have suggestions.  Thanks,

Andrew
Tagged:

Comments

  • Hi Andrew -


    From the look of your code, you've got a space within the start of your conditional which could be throwing the entire string off.

    <iframe src="https://8610614.fls.doubleclick.net/activityi;src=8610614;[[?x[[S120:dc:recurringFrequencyLabel]]x::xMonthly (ongoing)x::type=mon;cat=month0;::type=otg;cat=oneti0;]]qty=1;cost=[[S120:dc:giftAmount]];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=[[S120:dc:trackingCode]]?" width="1" height="1" frameborder="0" style="display:none"></iframe>


    Also, it looks like you've got Google Tag Manager in play here as well, so on the Thank You page you can pass your S-tags to the dataLayer, use GTM Variables to read that data and then fire DoubleClick from GTM.


    Here are two examples:
    024ea8e019138d585a8a41e298c98731-huge-do
    f3177373f81d13c1065b0d212a08bb6c-huge-do


     
  • The recurring frequency label can be edited in the future, which would break this conditional. What about reversing this?

    [[?x[[S120:dc:recurringFrequencyLabel]]x::xx::NOT-MONTHLY::MONTHLY]]
    I'm assuming you get nothing from this tag on a one-time gift. I'd do a quick test to confirm.


    EDIT: This would also then work with recurring that is not monthly or ongoing, if those ever get added you would still be good.

Categories