简体   繁体   English

Drupal 7,Google Analytics(分析),下载/用户名

[英]Drupal 7, Google Analytics, Downloads/username

I need to use the reporting system within Drupal (or a module) to report which file was downloaded by each registered user of my site. 我需要使用Drupal(或模块)中的报告系统来报告站点的每个注册用户下载的文件。 I can see the visited pages, but not the actual download event or file name. 我可以看到访问过的页面,但看不到实际的下载事件或文件名。

Im also using Google Analytics, but it doesn't report which files have been downloaded by a specific username..or does it? 我还使用了Google Analytics(分析),但没有报告特定用户名下载了哪些文件。

Any help is appreciated! 任何帮助表示赞赏!

Probably your solution is setting custom variables . 可能您的解决方案是设置自定义变量
Go to the Google Analitycs config page, scroll down to custom variables & set these values: 转到Google Analitycs配置页面,向下滚动到自定义变量并设置以下值:

Name = user 名称=用户
Value = [current-user:name] 值= [当前用户:名称]
Scope = session OR visit 范围=会话或访问

You must also check "Track downloads (clicks on file links) for the following extensions" with the file extensions you want to track. 您还必须选中要跟踪的文件扩展名的“跟踪以下扩展名的下载(单击文件链接)”

With these values you can define additional segments in your analytics. 使用这些值,您可以在分析中定义其他细分。 For more info check this page: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables 有关更多信息,请访问以下页面: https : //developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables

Hope that helps! 希望有帮助!

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

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