BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Email Marketer Community Forum > Customization and Integration

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2017, 01:51 PM
Arif + Arif is offline
Interspire Customer
 
Join Date: Jan 2017
Posts: 2
Default Problem with google analytics

Hi,

I am new to Interspire. We are using interspire to send newsletter to our customers. To track link clicks, we need to use Google Analytics. I have followed the guide to enable Google analytics, but I'm not getting any data in Google. It looks like I don't get any trackaer_parameter added in the URL when interspire creates the forwarding link to our site.

I tried to look into the code and DB a bit, and found that there should be some tracker related lines in PREFIX_module_tracker table. This table actually empty. Is there anything I have to do to get the tracking module setup?

Code:
 $rs = $db->Query('SELECT * FROM ' . SENDSTUDIO_TABLEPREFIX . "module_tracker WHERE statid = {$mStatID} AND stattype = '{$mStatType}'");
                        if ($rs === false) {
                                return false;
                        }
Reply With Quote
  #2  
Old 01-06-2017, 02:57 PM
jacobspaulsen + jacobspaulsen is offline
Interspire Customer
 
Join Date: Jun 2012
Location: Denver, CO
Posts: 144
Default

What version are you using?
__________________
Jacob S. Paulsen
Interspire Email Marketer Addons
Reply With Quote
  #3  
Old 01-06-2017, 03:00 PM
Arif + Arif is offline
Interspire Customer
 
Join Date: Jan 2017
Posts: 2
Default

The latest one available for download, 6.1.6.
Reply With Quote
  #4  
Old 01-06-2017, 10:27 PM
fcarentz + fcarentz is offline
Interspire Customer
 
Join Date: Oct 2013
Posts: 6
Default

Yup for some reason new newsletters when added with tracking enabled are never getting added to the module_tracker table.

A fix is definitely needed.
Reply With Quote
  #5  
Old 01-09-2017, 03:28 PM
fcarentz + fcarentz is offline
Interspire Customer
 
Join Date: Oct 2013
Posts: 6
Default

Hey Guys... Hopefully you check this thread.

Not sure if this is a complete fix, but.... I was able to get my GA tracking again by adding the following code to the \admin\functions\api\send_jobs.php file

In the ProcessJob function around like 204 you will find the following:
PHP Code:
$statid $this->Stats_API->SaveNewsletterStats($newsletterstats); 
Immediately after that line I have gone ahead and added this code. Which seems to get the tracker working again.

PHP Code:
/**
             * Process tracker request where because cron was not enabled, we need to parse the option straight away
             * @todo Result for the call to module_Tracker::ParseOptionsForAllTracker() is not being processed and being ignored
             */
            
$tempAPIFile dirname(__FILE__) . '/module_trackerfactory.php';
            if (
is_file($tempAPIFile)) {
                require_once(
$tempAPIFile);
                
$temp array_merge($this->jobdetails, array('statid' => $statid,
                    
'stattype' => 'newsletter',
                    
'newsletterid' => $this->jobdetails['Newsletter']));

                
$status module_Tracker::ParseOptionsForAllTracker($temp);
            } 
Got that from an older copy of the jobs_Send.php file I had on hand. Not sure why it was removed from the latest version. But seems to be the culprit.

Hope that helps you guys. Waiting and hoping for Interspire assistance on these forums seems to be nothing more than a waste of time, every time.

Good luck!

Last edited by fcarentz; 01-09-2017 at 03:38 PM..
Reply With Quote
Reply

Tags
google analytics tracking

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump