PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Google Analytics Tracking Addons Request

  1. caldiatech

    we are switching from our own forms to gravity forms, and are need of a addon that tracks google Analytics tracking cookies, below we have the code used for that section

    // used to get the tracking cookie from google analytics and make it viewable
    function tracking_cookie() {
    	$GLOBALS['version'] .= " (Tracking Cookie V1.6)";
    	$trackarr	= split('[|]',$_COOKIE["__utmz"]);
    	$conversion = $_COOKIE["Conversion"];
    		switch ($key){
    			case "utmcsr":
    				$cookie['SearchEngine']		=	$keyvalues[1];break;
    			case "utmccn":
    				$cookie['SearchCampaign']	=	$keyvalues[1];break;
    			case "utmcmd":
    				$cookie['SearchType']		=	$keyvalues[1];break;
    			case "utmcct":
    				$cookie['AdText']			=	$keyvalues[1];break;
    			case "utmctr":
    				$cookie['Keyword']			=	$keyvalues[1];break;
    			case "mgclid":
    				$cookie['isPPC']			=	$keyvalues[1];break;
    	if ($cookie['isPPC'] !='') {$cookie['SearchType']='PPC';$cookie['SearchEngine']='google';}
    	if ($conversion !='') {$cookie['SearchType']='Conversion';$cookie['SearchEngine']='google';}
    	return $cookie;

    thats the function we used, we would then exec it

    $cookie = tracking_cookie(); // results from tracking cookie

    and then input it into the admin, or site owner email to display

    Search Engine: {$cookie['SearchEngine']}
    Keyword: {$cookie['Keyword']}
    Type: {$cookie['SearchType']}
    Ad Text: {$cookie['AdText']}
    Campaign Name: {$cookie['SearchCampaign']}

    and it would display something like this

    Search Engine:
    Type: referral
    Campaign Name: (referral)

    can this be created as a addon? we need one ASAP

    Posted 10 years ago on Wednesday May 1, 2013 | Permalink
  2. Thank you for the suggestion. However, it is not going to be created as an add-on ASAP.

    Posted 10 years ago on Thursday May 2, 2013 | Permalink
  3. Additionally, a priority support ticket was opened.

    Posted 10 years ago on Thursday May 2, 2013 | Permalink

This topic has been resolved and has been closed to new replies.