English 中文(简体)
页: 1
原标题:Server Side Google Analytics -- utm variables

因此,我已经在我的服务器上安装了一个视某些条件而定的网页。 这本书为羊.分析制造了果树,并击中了服务器。

我与我的客户一道确认,他们重新看到了该页的点击;然而,有些人希望看到UTM变量(utm_campaign, utm_source, utm_term,等等)。 我看不到自动取款机变量可以停留,我把这些变量放在跟踪线上,但认为它们会重新被拆除。 这是否要求“UTME”一盘?

    <cfset TrackingStringFromEDOM = ("http://www.google-analytics.com/__utm.gif?" & 
        "utmwv=4.4sh&" &
        "utmn=#RandRange(0,2000000000)#&" &
        "utmhn=#URLEncodedFormat(urlDomainString)#&" &
        "utmr=%2D&" &
        "utmp=#URLEncodedFormat(utmp)#&" &
        "utmac=#googleID#&" &
        "utmcc=__utma%3D999.999.999.999.999.1%3B&" &
        "utmvid=#id#&" &
        "utmip=127.0.0.0"
    ) />
    <cfoutput>#TrackingStringFromEDOM#</cfoutput><br/><br/>

    <cfhttp method="get" url="#TrackingStringFromEDOM#" timeout="1000" />
最佳回答

首先,我要以不同方式写出变量:

<cfset TrackingStringFromEDOM = "http://www.google-analytics.com/__utm.gif?" & 
        "utmwv=4.4sh&" &
        "utmn=" & RandRange(0,2000000000) & "&" &
        "utmhn=" & URLEncodedFormat(urlDomainString) & "&" &
        "utmr=%2D&" &
        "utmp=" & URLEncodedFormat(utmp) & "&" &
        "utmac=" & googleID & "&" &
        "utmcc=__utma%3D999.999.999.999.999.1%3B&" &
        "utmvid=" & id & "&" &
        "utmip=127.0.0.0"
     />

另有一些参数似乎没有列入基准参数清单,请查:

问题回答

暂无回答




相关问题
JQuery AJAX .load - flash chart doesnt load in IE

An IE issue has me completely stumped. I have a coldfusion page that uses JQuery s AJAX .load function to load in a new flash file that is generated by coldFusion s cfchart tag. This works completely ...

Best Coldfusion Library for OpenID [closed]

I am getting ready to start a project that requires using OpenID within Coldfusion 8. I have found a number of different options and was wondering what has worked the best, get s the most support, ...

Find ColdFusion Generated ID

Is there a way to find the elements generated by ColdFusion s <CFLayout> and <CFLayoutArea> tags? These tags: <cflayout type="tab" name="MyAccount"> <cflayoutarea name="...

ColdFusion COM error

I am upgrading from CF4.5 to CF8. Calls to COM dll s that used to work in version 4.5 now throw a "Complex object types cannot be converted to simple values.." error. The COM object has a few arrays ...

What s the best way to write engine-specific CFML code?

Sometimes it is necessary to write different code for Adobe ColdFusion vs Railo vs OpenBD, due to differences in implementation. Do people have a specific method that they use for this? For example, ...

热门标签