You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: trackGoogleAnalytics.m
    path of file: ./repos/CellExplorer/calc_CellMetrics
    
    the code of the file until where you have to start completion: function trackGoogleAnalytics(appName,appVersion,varargin)

p = inputParser;
addParameter(p,'metrics',[],@isstruct); % cell_metrics struct
addParameter(p,'session',[],@isstruct); % session metadata struct
parse(p,varargin{:})
% metrics = p.Results.metrics;
% session = p.Results.session;

try
    trackingID = "UA-166238697-1"; % CellExplorer google analytics tracking ID
    hostname = "https://cellexplorer.org";
    tracker = mga.Tracker(trackingID, hostname);

    
function trackGoogleAnalytics(appName,appVersion,varargin)

p = inputParser;
addParameter(p,'metrics',[],@isstruct); % cell_metrics struct
addParameter(p,'session',[],@isstruct); % session metadata struct
parse(p,varargin{:})
% metrics = p.Results.metrics;
% session = p.Results.session;

try
    trackingID = "UA-166238697-1"; % CellExplorer google analytics tracking ID
    hostname = "https://cellexplorer.org";
    tracker = mga.Tracker(trackingID, hostname);
    visitor = mga.Visitor('AppVersion', string(num2str(appVersion)));
    appName = string(['/',appName,'.app']);
    page1 = mga.hit.Pageview(appName);
    
    tracker.track(visitor, page1);
end