English 中文(简体)
Track custom firefox search engine with google analytics
原标题:

I made a custom Firefox search engine. It used the code below. Is it possible for me to track the use of this on the site. My concern is that searches form the firefox search engine will look like direct visits in google analytics. I would like to tag the searches or some other solution. I kinda hacked this together i.e. a newbie at this.

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>ICD9 Code Search</ShortName>
<Description>Search ICD9 Code Search</Description>
<Tags>schadenfreude</Tags>
<Image height="16" width="16" type="image/x-icon">https://drchrono.com/favicon.ico</Image>
<Url type="text/html" method="GET" template="https://drchrono.com/billing/medical_codes/?code_type=icd9_procedures&amp;search_text={searchTerms}&amp;Submit=Search&amp;search_hcpcs_level2_codes=on&amp;search_hcpcs_level2_modifiers=on"/>
<InputEncoding>UTF-8</InputEncoding>
<AdultContent>false</AdultContent>
</OpenSearchDescription>
问题回答

Could you not add a dummy query parameter that does not affect behaviour but can be used when analysing logs? E.g.:

<Url type="text/html" method="GET" template="https://drchrono.com/billing/medical_codes/?code_type=icd9_procedures&amp;search_text={searchTerms}&amp;Submit=Search&amp;search_hcpcs_level2_codes=on&amp;search_hcpcs_level2_modifiers=on&amp;source=firefox_se"/>

What you need is called campaign tagging. You can append special arguments to the URL that will be recognized by the Google Analytics script running on your site and collected on GA s Traffic Sources/Campaigns report. There is an online URL builder tool by Google that helps you creating the campaign tags.





相关问题
Autocomplete in opensearch

I have done autocomplete functionality for opensearch using WCF. But we are using 3.5, so I now need to achieve the same without using WCF. Any idea or please send me any useful link. My scenario is ...

Google Custom Search and Opensearch

I have a Google Custom Search Engine on our site and I have recently implemented the opensearch XML file so that I can add our site s search in the browsers search box. Any idea how I can add the ...

Confused about namespaces in Atom feed

Is there any difference between <opensearch:totalResults>1000</opensearch:totalResults> and <totalResults xmlns="opensearch">1000</totalResults> I m using the ...

Track custom firefox search engine with google analytics

I made a custom Firefox search engine. It used the code below. Is it possible for me to track the use of this on the site. My concern is that searches form the firefox search engine will look like ...

OpenSearch .net (C#) library: which one?

i would like to add OpenSearch to my C# webapplication. does someone recommend a certain .net library? or does a custom webapplication require a tailormade opensearch implementation?

热门标签