Quantcast
Channel: drupal.org - Site administrators
Viewing all articles
Browse latest Browse all 426

Integrate your module with Baidu Analytics

$
0
0

This page is made for module developers.

The code below is an example of how to integrate your module with the Baidu Analytics module version 7.x-1.x or above. You should also see Advanced Baidu Analytics JavaScript Snippets about links to the Baidu Tracking API documentation.

@TODO:Code snippet to be modified based on Integrate your module with Google Analytics code snippet. The major difference is in the regex used for the call to preg_replace since Baidu Analytics supports different types of JavaScript codes.

<?php
function mymodule_preprocess_page(&$variables) {
 
// Code snippet to be completed here.
}
?>

Viewing all articles
Browse latest Browse all 426

Trending Articles