// Region DBCodeDownloader Begin ------------/ // Region DBCodeDownloader End---------------/ // Region Tracking Code Linker Google Event Begin----------------------/ trackingManager.IsGoogleEventTrackingOn = true; trackingManager.GoogleAnalyticsTrackingAccountsNames = 'eBizReports'; function GoogleEventTracking(trackingPlaceEnum, params) { var names = trackingManager.GoogleAnalyticsTrackingAccountsNames.split(","); if (typeof ga !== 'undefined' && $.isFunction(ga)) { $.each(names, function(key, value) { switch(trackingPlaceEnum) { case 1: //Contact Us if (trackingManager.PageName == 'home' && params == 'homepage') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Contact Us - Home Page'); } else if (trackingManager.PageName == 'about') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Contact Us - Dealership Info'); } else if (trackingManager.PageName== 'mapandhours') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Contact Us - Map & Hours'); } else if (trackingManager.PageName== 'department') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Contact Us - Other Department'); } else if (trackingManager.PageName== 'parts') { ga(value + '.send', 'event', 'Form Submission', 'Parts Lead Form', 'Parts - Contact Us'); } else if (trackingManager.PageName== 'service') { ga(value + '.send', 'event', 'Form Submission', 'Service Lead Form', 'Service - Contact Us'); } else if (params == 'footer') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Contact Us - Footer'); } break; case 2: //Coupon if (trackingManager.PageName == 'home') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Coupon - Home Page'); } else if (trackingManager.PageName == 'details') { ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Coupon - VDP'); } break; case 3: //Service request ga(value + '.send', 'event', 'Form Submission', 'Service Lead Form', 'Service - Appointment'); break; case 4: //Parts request ga(value + '.send', 'event', 'Form Submission', 'Parts Lead Form', 'Parts - Parts Request'); break; case 5: //SurveyForm(Custom Form) ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Custom Form - ' + params); break; case 6: //Credit App ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Credit Application - ' + params); break; case 7: //Trade Appraisal if (trackingManager.PageName == 'tradeappraisal') { ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Trade Appraisal - Page'); } else if (trackingManager.PageName == 'details') { ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Trade Appraisal - VDP'); } break; case 8: //VehicleRequest(Vehicle Finder) if (trackingManager.PageName == 'vehiclerequest') { ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Vehicle Finder - Page'); } else if (trackingManager.PageName == 'inventory') { ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Vehicle Finder - SRP'); } break; case 9: //RequestMoreInfo VDP if (trackingManager.PageName == 'details') { ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Request More Info - VDP'); } else if (trackingManager.PageName == 'specials') { if (params == 'inventoryspecials') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Dealer Special - Vehicle'); } else if (params == 'partsspecials') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Dealer Special - Parts'); } else if (params == 'servicespecials') { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Dealer Special - Service'); } else { ga(value + '.send', 'event', 'Form Submission', 'General Lead Form', 'Dealer Special - Other'); } } break; case 10: //RequestMoreInfo PopUp if (trackingManager.PageName == 'mediaviewer') { ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Request More Info - Media Viewer'); } else { ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Request More Info - Popup'); } break; case 11: //MakeAnOffer VDP ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Make an Offer - VDP'); break; case 12: //MakeAnOffer PopUp ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Make an Offer - Popup'); break; case 13: //RequestTestDrive VDP ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Request a Test Drive - VDP'); break; case 14: //RequestTestDrive PopUp ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Request a Test Drive - Popup'); break; case 15: //GetAQuote VDP ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Get a Quote - VDP'); break; case 16: //GetAQuote PopUp ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Get a Quote - Popup'); break; case 17: //RequestTestDrive Page ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Request a Test Drive - Page'); break; case 18: //Manufacturer Special Offer Popup ga(value + '.send', 'event', 'Form Submission', 'Vehicle Lead Form', 'Manufacturer Special Offer'); break; case 19: //Autocheck if (trackingManager.PageName == 'inventory') { ga(value + '.send', 'event', 'Web Action', 'Autocheck', 'Autocheck - SRP'); } else if (trackingManager.PageName == 'details') { ga(value + '.send', 'event', 'Web Action', 'Autocheck', 'Autocheck - VDP'); } break; case 20: //Carfax if (trackingManager.PageName == 'inventory') { ga(value + '.send', 'event', 'Web Action', 'CARFAX', 'CARFAX - SRP'); } else if (trackingManager.PageName == 'details') { ga(value + '.send', 'event', 'Web Action', 'CARFAX', 'CARFAX - VDP'); } break; case 21: //Emeil e Friend if (trackingManager.PageName == 'inventory') { ga(value + '.send', 'event', 'Web Action', 'Email a Friend', 'Email a Friend - SRP'); } else if (trackingManager.PageName == 'details') { ga(value + '.send', 'event', 'Web Action', 'Email a Friend', 'Email a Friend - VDP'); } else if (trackingManager.PageName == 'specials') { ga(value + '.send', 'event', 'Web Action', 'Email a Friend', 'Email a Friend - Specials'); } else if (trackingManager.PageName == 'mediaviewer') { ga(value + '.send', 'event', 'Web Action', 'Email a Friend', 'Email a Friend - Video'); } else { ga(value + '.send', 'event', 'Web Action', 'Email a Friend', 'Email a Friend - Other'); } break; case 22: //Get Dirrection if (params == 'socialbar') { ga(value + '.send', 'event', 'Web Action', 'Get Directions', 'Get Directions - Social Bar'); } else { if (trackingManager.PageName == 'about') { ga(value + '.send', 'event', 'Web Action', 'Get Directions', 'Get Directions - Dealership Info'); } else if (trackingManager.PageName == 'mapandhours') { ga(value + '.send', 'event', 'Web Action', 'Get Directions', 'Get Directions - Map & Hours Page'); } else if (trackingManager.PageName == 'parts') { ga(value + '.send', 'event', 'Web Action', 'Get Directions', 'Get Directions - Parts'); } else if (trackingManager.PageName == 'service') { ga(value + '.send', 'event', 'Web Action', 'Get Directions', 'Get Directions - Service'); } else { ga(value + '.send', 'event', 'Web Action', 'Get Directions', 'Get Directions - Other'); } } break; case 23: //Print Page button if (trackingManager.PageName == 'inventory') { ga(value + '.send', 'event', 'Web Action', 'Print Page', 'Print Page - SRP'); } else if (trackingManager.PageName == 'specials') { ga(value + '.send', 'event', 'Web Action', 'Print Page', 'Print Page - Specials'); } else { ga(value + '.send', 'event', 'Web Action', 'Print Page', 'Print Page - Other'); } break; case 24: //Print Brochure Full ga(value + '.send', 'event', 'Web Action', 'Vehicle Brochure', 'Vehicle Brochure - Full'); break; case 25: //Print Brochure Summary ga(value + '.send', 'event', 'Web Action', 'Vehicle Brochure', 'Vehicle Brochure - Summary'); break; case 26: //View Map if (params == 'socialbar') { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - Social Bar'); } else if (params == 'footer') { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - Footer'); } else if (params == 'homepage') { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - HomePage'); } else { if (trackingManager.PageName == 'about') { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - Dealership Info'); } else if (trackingManager.PageName == 'mapandhours') { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - Map & Hours Page'); } else if (trackingManager.PageName == 'parts') { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - Parts'); } else if (trackingManager.PageName == 'service') { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - Service'); } else if (trackingManager.PageName == 'home') { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - HomePage'); } else { ga(value + '.send', 'event', 'Web Action', 'View Map', 'View Map - Other'); } } break; case 27: //Share Twitter ga(value + '.send', 'event', 'Web Action', 'Social Media Share', 'Share to Twitter'); break; case 28: //Share to Facebook ga(value + '.send', 'event', 'Web Action', 'Social Media Share', 'Share to Facebook'); break; case 29: //Share to Google+ ga(value + '.send', 'event', 'Web Action', 'Social Media Share', 'Share to Google+'); break; case 30: //Share Other ga(value + '.send', 'event', 'Web Action', 'Social Media Share', 'Share to Other'); break; case 31: //Save This Car ga(value + '.send', 'event', 'Web Action', 'Save This Car', 'Save This Car for Price Alerts'); break; default: break; } }); } } // Region Tracking Code Linker Google Event End------------------------/ // Region Initialize Tracking Manager Begin-------------/ trackingManager.PageType = 16; trackingManager.PageName = 'vehiclerequest'; trackingManager.LeadType = 12; trackingManager.SiteGUID = 'e9a30134-e91d-414a-b0e7-fa5353417135'; trackingManager.SecureSharedLocation = 'https://secure01.ebizautos.com/shared/'; trackingManager.IsCustomCodeToBeExecuted = true; trackingManager.IsNTPageGoogleTrackingOn = false; trackingManager.IsLexusTrackingOn = false; trackingManager.IsToyotaTrackingOn = false; trackingManager.IsScionTrackingOn = false; trackingManager.HasToExecuteLexusTracking = false; trackingManager.IsBmwTrackingOn = false; trackingManager.IsVolkswagenTrackingOn = false; trackingManager.InventoryYearParam = 'no value'; trackingManager.InventoryTrimParam = 'no value'; trackingManager.InventoryModelParam = 'no value'; trackingManager.InventoryMakeParam = 'no value'; trackingManager.InventoryTypeParam = 'no value'; trackingManager.VinNumberParam = ''; trackingManager.InventoryEngineParam = ''; trackingManager.InventoryTransmissionParam = ''; trackingManager.InventoryExtColorParam = ''; trackingManager.InventoryIntColorTypeParam = ''; trackingManager.IsBmwFranchise = false; trackingManager.IsVolkswagenFranchise = false; trackingManager.DealerState = ''; trackingManager.DealerZip = ''; trackingManager.DealerDomain = ''; trackingManager.ReferrerPage = ''; // Region Initialize Tracking Manager End---------------/