我正在尋找在一個頁面的3個鏈接上實施Omniture自定義鏈接跟蹤代碼。我已經提供了一些JavaScript代碼,但不知道我是否需要在頁面中使用這些代碼,或者只是需要將它合併到鏈接的onclick部分。如何爲點擊事件實施Omniture自定義鏈接跟蹤?
我以前沒有這樣做,試圖在這裏(http://microsite.omniture.com/t2/help/en_US/sc/implement/oms_sc_implement.pdf)讀了它,在這裏 (https://developer.omniture.com/en_US/content_page/sitecatalyst-tagging/c-add-a-custom-link) 但它沒有多大意義了我。
這裏是我迄今所做的:
- 其中的鏈接以開放body標籤
2後s_code.js。由Omniture提供的抓取代碼以跟蹤其中一個鏈接
s.linkTrackVars="eVar45,events";s.linkTrackEvents="event23";s.eVar45="MaturingEquityLines|RenewEquityLOCOverlay"; s.events="event23";s.tl(this,'o','MaturingEquityLines|RenewEquityLOCOverlay');
3。來自Omniture的自定義鏈接的跟蹤
<a href="#" id="community_overlay_trigger" class="delicious" onClick="s.linkTrackVars= s.linkTrackVars+',events,eVar8,prop8,prop13'; s.events='event6'; s.linkTrackEvents='event6'; s.eVar8=s.prop8='delicious'; s.prop13=s.pageName; s.tl(this,'o','Content Share');">delicious</a>
我想從比較的例子,我的鏈接應該編碼是這樣的:
<a href="#" id="popoverBtn1" class="popoverThis btn btn-default" data- placement='bottom' onClick="s.linkTrackVars= s.linkTrackVars+',eVar45,events'; s.events='event23'; s.linkTrackEvents='event23'; s.eVar45='MaturingEquityLines|RenewEquityLOCOverlay'; s.tl(this,'o','MaturingEquityLines|RenewEquityLOCOverlay');">Learn More <span class="glyphicon glyphicon-circle-arrow-right"></span></a>
不似乎正確的嗎?我是否需要包含來自#2的腳本。它在頁面的其他地方追蹤鏈接?
提供給我的代碼沒有任何s.prop
項目,如示例中所示,我需要它們嗎?
無論如何通過控制檯知道鏈接是否通過點擊進行跟蹤?
感謝,
** * ** * ****UPDATE* ** * ** * ** * ** * ** * ** * ** * ** * ****
對不起看來我是因爲每個人都解釋我提供的例子,而不是我想實現的代碼之前不清楚。
這是我生成的代碼,並且想知道它是否正確。我在頁面上使用jQuery。
<div class="col-md-4">
<img src="house.gif" alt="House Symbol" />
<h4>Renew Your<br />Equity Line of Credit</h4>
<a href="#" id="popoverBtn1" class="popoverThis btn btn-default" data-placement='bottom' onClick="s.linkTrackVars= s.linkTrackVars+',eVar45,events'; s.events='event23'; s.linkTrackEvents='event23'; s.eVar45='MaturingEquityLines|RenewEquityLOCOverlay'; s.tl(this,'o','MaturingEquityLines|RenewEquityLOCOverlay');">Learn More <span class="glyphicon glyphicon-circle-arrow-right"></span></a>
<div id="popoverContent1" class="hide"><strong>Ideal for:</strong> Qualified clients who want to continue having the convenient access to funds that a home equity line of credit provides.<br /><br /><strong>What:</strong> Apply for a new Access 3<sup>®</sup> Equity Line and transfer your current balance to the new line. <a target="_blank" href="https://www.suntrust.com/PersonalBanking/Loans/EquityLinesOfCreditAndLoans/EquityLineOfCredit">Learn More</a> about our Access 3<sup>®</sup> Equity Line.<br /><br /><strong>Get started:</strong> <a target="_blank" href="https://www.suntrust.com/portal/server.pt?space=Redirect&CommunityID=1805&ui_ProdGroup=IL&ui_ProdSubGroup=EQLN&ui_Product=INETACCX&POPNAC=T">Apply Online</a>, Call <span class="blue">877-748-4059</span>, or stop by your <a target="_blank" href="https://www.suntrust.com/FindUs">local branch</a>.
</div>
</div>
<div class="col-md-4">
<img src="money.gif" alt="Money Symbol" />
<h4>Pay Off the<br />Current Balance</h4>
<a href="#" id="popoverBtn2" class="popoverThis btn btn-default" data-placement='bottom' onClick="s.linkTrackVars= s.linkTrackVars+',eVar45,events'; s.events='event23'; s.linkTrackEvents='event23'; s.eVar45='MaturingEquityLines|PayOffCurrentBalanceOverlay'; s.tl(this,'o','MaturingEquityLines|PayOffCurrentBalanceOverlay');">Learn More <span class="glyphicon glyphicon-circle-arrow-right">Learn More <span class="glyphicon glyphicon-circle-arrow-right"></span></a>
<div id="popoverContent2" class="hide"><strong>Ideal for:</strong> Clients who no longer need an equity line of credit and are in a financial position to begin repaying their balance with the new monthly payments.<br /><br /><strong>What:</strong> Begin to pay off the balance of your existing equity line of credit when the draw period ends.<br /><br /><strong>Get started:</strong> Continue to make regular payments under the repayment period terms of your existing home equity line of credit; no further action is required.
</div>
</div>
<div class="col-md-4">
<img src="note.gif" alt="Note Symbol" />
<h4>Sign a Repayment<br />Extension</h4>
<a href="#" id="popoverBtn3" class="popoverThis btn btn-default" data-placement='bottom' onClick="s.linkTrackVars= s.linkTrackVars+',eVar45,events'; s.events='event23'; s.linkTrackEvents='event23'; s.eVar45='MaturingEquityLines|SignRepaymentExtensionOverlay'; s.tl(this,'o','MaturingEquityLines|SignRepaymentExtensionOverlay');">Learn More <span class="glyphicon glyphicon-circle-arrow-right">Learn More <span class="glyphicon glyphicon-circle-arrow-right">Learn More <span class="glyphicon glyphicon-circle-arrow-right"></span></a>
<div id="popoverContent3" class="hide" style="z-index:-1;"><strong>Ideal for:</strong> Clients who anticipate having a difficult time making higher monthly payments when their draw period ends.<br /><br /><strong>What:</strong> Modify your existing repayment term and extend the repayment period which allows you to make lower monthly fixed-rate payments.<br /><br /><strong>Get started:</strong> Call us at <span class="blue">888-886-0696</span>, Monday – Friday 8 am to 6 pm ET, and request a Repayment Extension.* We will mail you the extension with instructions on completing and returning it.<br /><br /><span class="dis"><em>* By submitting this request, Federal Regulations require SunTrust Bank to determine if your home is located in a Special Flood Hazard Area as designated by the FEMA Flood Maps for your community. If your home is determined to be in a flood zone A or V, you will be required to obtain and maintain acceptable flood insurance coverage for the remaining term of your equity line or loan. This requirement is not dependent upon the approval of your modification. Once a flood zone determination is made, withdrawal of the modification request will not eliminate the flood insurance requirement for zones A and V. Unfortunately a lender placed flood policy is not acceptable by law to allow us to proceed with the modification even if the agreement is executed. If at any point during the term of your line or loan we are notified that you are located in a Special Flood Hazard Area, the bank is required by Federal Law to ensure that adequate flood insurance is on file for your property.</em></span>
</div>
我認爲這是建議我應該從每一個環節s.linkTrackVars= s.linkTrackVars+',eVar45,events';
非常感謝您的調試器。我認爲這會幫助我很多。這令我非常緊張,我無法真正知道它是否有效,但現在我可以了。 –
對於omniture腳本的後期運行,我建議你在Firefox Mozilla中使用HTTP Fox debbuger。 – shamshul2007