简体   繁体   English

Google Analytics(分析)URL参数

[英]Google Analytics URL parameters

I need to make a single page (videos.php) to download a .MP4 video file based on an URL parameter. 我需要制作一个页面(videos.php),以根据URL参数下载.MP4视频文件。 That page is to be used in conjunction with a QR code in a printed magazine. 该页面应与印刷杂志中的QR码一起使用。

ie

?file=videofiles/video1.mp4 

or 要么

?file=videofiles/video2.mp4 

What I am unsure of is if Google Analytics will track that page with separate parameters or just as a single page where a hit on both videos will count as hit on videos.php without regard to the video itself. 我不确定的是,Google Analytics(分析)是否会使用单独的参数来跟踪该页面,或者仅将单个视频中的两个视频的点击量都视为在video.php上的点击量而与视频本身无关。

I want to be able to view the hits on both videos separately. 我希望能够分别查看两个视频的点击率。 Will Analytics take care of the parameter or is there a better / other solution? Analytics(分析)会照顾参数还是有更好的/其他解决方案?

I did it a long time ago. 我很久以前做了。 I paste here for you my config (I don't know if something has changed and I don't know if it's the best solution... but can be a point of start): 我在这里为您粘贴我的配置(我不知道是否有所更改,我也不知道这是否是最佳解决方案……但是可以作为起点):

In your analytics page: 在您的分析页面中:

  • click on Admin (top right), 点击管理员(右上角),
  • click on Filters tab 单击Filters选项卡
  • new filter
  • Choose Advanced 选择Advanced
  • Create new filter (choose name and domain) 创建新的过滤器(选择名称和域)
  • Custom filter
  • Advanced

    Field A -> Extract A Referral (.*) 栏位A->提取引荐(.*)

    Field B -> Extract B - 栏位B->提取物B-

    Output To -> Constructor User-defined $A1 输出到->构造函数User-defined $A1

Field A Required Yes 栏位A必填

Field B Required No 栏位B是否必填

Override Output Field Yes 覆盖输出字段是

Case-sensitive No 区分大小写否

You can configure url destination goals for the same url with different parameters. 您可以使用不同的参数为同一网址配置网址目标。 Look here: http://support.google.com/analytics/bin/answer.py?hl=en&answer=1116091 在这里查看: http : //support.google.com/analytics/bin/answer.py? hl=zh_CN& answer=1116091

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM