[英]How do I access the shared google analytics id in Drupal 7
I am looking to use the Drupal Google analyics tracking Id in another part of Drupal to do some custom tracking. 我希望在Drupal的另一部分中使用Drupal Google分析跟踪ID进行一些自定义跟踪。
I want to use the shared ga uA code that has been entered by the user and not create a new one. 我想使用用户输入的共享ga uA代码,而不要创建新的代码。 How do I get a programmatic reference to the GA id that the user has already entered into the GA module. 如何获得用户已经输入到GA模块中的GA ID的编程参考。
尝试这个:
$ga_id = variable_get('googleanalytics_account');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.