Skip to content

Commit

Permalink
gtag event scroll added
Browse files Browse the repository at this point in the history
  • Loading branch information
Nobatgeldi committed Oct 26, 2023
1 parent c4cfd4c commit 3ce6a0d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/covisart/NGS.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import TabOne from "../elements/tab/TabOne";
import FooterTwo from '../common/footer/FooterTwo';
import Copyright from '../common/footer/Copyright';
import Product from "./Product"

class NGS extends Component {

render() {
return (
<main className="page-wrapper" >
Expand Down
2 changes: 1 addition & 1 deletion src/covisart/Product.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Product = () => {
const [api, contextHolder] = notification.useNotification();
const tabCount = 5;
ReactGA.initialize("G-XTQCE7S8BR");
ReactGA.send({ hitType: "pageview", page: "/ngs", title: "NGS-360-3 Axis Simulator" });
ReactGA.send({ hitType: "pageview", page: "/products-and-solutions/new-generation-simulator/ngs-360-3/", title: "NGS-360-3 Axis Simulator" });

const snap = useSnapshot(state)
const columns = [
Expand Down
10 changes: 9 additions & 1 deletion src/pages/Company.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@ import SlipThree from "../elements/split/SlipThree";
import PortfolioOne from "../elements/portfolio/PortfolioOne";
import TeamFour from "../elements/team/TeamFour";
import BrandTwo from "../elements/brand/BrandTwo";

import ReactGA from "react-ga4";
//frame-image
class Company extends Component {
render() {

ReactGA.initialize("G-XTQCE7S8BR");
ReactGA.send({ hitType: "pageview", page: "/products-and-solutions/new-generation-simulator/ngs-360-3/", title: "NGS-360-3 Axis Simulator" });

ReactGA.gtag("event", "select_content", {
content_type: "NGS-360-3",
content_id: "NGS-360-3"
});
return (
<main className="page-wrapper">
{/* <HeaderOne btnStyle="btn-small round btn-icon" HeaderSTyle="header-transparent" /> */}
Expand Down

0 comments on commit 3ce6a0d

Please sign in to comment.