Skip to content

Commit

Permalink
console.logs removed
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeEverett committed May 24, 2024
1 parent e61d485 commit c4370af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import ReactGA from 'react-ga4';
const TRACKING_ID = "G-PL6P8LRKHT";
ReactGA.initialize(TRACKING_ID);

console.log('v1.0.9');

openDB('coursesDB', 1, {
upgrade(db) {
if (!db.objectStoreNames.contains('courses')) {
Expand Down
9 changes: 0 additions & 9 deletions src/pages/course/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ const Page = () => {

// Send pageview with a custom path
ReactGA.send({ hitType: "pageview", page: `/#/course-finder/details?courseId=${courseId}`, title:courseName$._value });
console.log(courseId);
console.log(courseName$._value);
fetchData();
}, [courseId, setPageRequest]);

Expand Down Expand Up @@ -165,7 +163,6 @@ const Page = () => {
const handleGoBack = (e) => {
e.preventDefault()
navigate(-1); // Navigate back one step
console.log('backToResults-ga')
ReactGA.event(
{
category: 'Back to results',
Expand All @@ -185,7 +182,6 @@ const Page = () => {
}

const handleProviderWebsiteClick = (providerWebsite) => {
console.log('website-ga')
ReactGA.event(
{
category: 'Course Provider Website link',
Expand All @@ -195,7 +191,6 @@ const Page = () => {
};

const handleProviderPhoneClick = (providerPhone) => {
console.log('phone-ga')
ReactGA.event(
{
category: 'Course Provider Phone Number link',
Expand All @@ -205,7 +200,6 @@ const Page = () => {
};

const handleProviderEmailClick = (providerEmail) => {
console.log('email-ga')
ReactGA.event(
{
category: 'Course Provider Email link',
Expand All @@ -215,7 +209,6 @@ const Page = () => {
};

const handleCourseURLClick = (courseWebsite) => {
console.log('website2-ga')
ReactGA.event(
{
category: 'Course Website link',
Expand All @@ -226,7 +219,6 @@ const Page = () => {


const handleLiveChatNCSClick = (liveChatNCS) => {
console.log('liveChat-ga')
ReactGA.event(
{
category: 'National Careers Service Live Chat',
Expand All @@ -236,7 +228,6 @@ const Page = () => {
};

const handlePhoneNCSClick = (phoneNCS) => {
console.log('phone2-ga')
ReactGA.event(
{
category: 'National Careers Service Phone',
Expand Down
2 changes: 0 additions & 2 deletions src/pages/courses/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,6 @@ const Page = () => {
};

const searchGA = (searchTerms) => {
console.log('search ga');
console.log(searchTerms);
if(searchTerms !== 'undefined') {
ReactGA.event({
category: 'course search',
Expand Down

0 comments on commit c4370af

Please sign in to comment.