Analytics
6.5K members online now
6.5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Calculated Metric Including Cost and Value

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi There,

 

Thanks for taking a second to review this odd request.

 

I'm attempting to create a new calculated metric which calculates the "Cost per Lead" for a lead generation site. There are a couple different goals with varying per user lead value. I'm attempting to implement this as a Decimal type use this setup:

 

  • Cost / ( Goal Value 1 + Goal Value 2 + Goal Value 3 + Goal Value 4)

    Here's the actual code:

    {{Cost}} / ( {{Sample Order (Goal 20 Value)}} + {{Get A Quote (Goal 4 Value)}} + {{Contact a Builder (Goal 7 Value)}} + {{Contact a Retailer (Goal 8 Value)}} )

I'm getting <$0.01 as the value returned though for sources with cost data in them and $0.00 for sources with no cost data. There are costs and values with values (and I get them shown in their own metric) but when I apply this math to this it doesn't work. Any thoughts?

Calculated Metric Including Cost and Value

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Any thoughts here? Hoping that if I post a comment perhaps someone else might see this.